Skip to content

Commit

Permalink
Added binary rule to gitattributes
Browse files Browse the repository at this point in the history
  • Loading branch information
mazinsw committed Oct 12, 2018
1 parent da6932e commit b9c0be7
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 6 deletions.
3 changes: 3 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,6 @@
*.PDF diff=astextplain
*.rtf diff=astextplain
*.RTF diff=astextplain

# Denote all files that are truly binary and should not be modified.
*.bin binary
2 changes: 2 additions & 0 deletions src/Thermal/Profile/Profile.php
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,8 @@ public function draw($image, $align)

abstract public function feed($lines);
abstract public function cutter($mode);
abstract public function buzzer();

/**
* @param int $number drawer id
* @param int $on_time time in milliseconds that activate the drawer
Expand Down
1 change: 1 addition & 0 deletions tests/Thermal/Profile/DarumaTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ public function testFeed()
{
$this->connection->clear();
$profile = $this->model->getProfile();
$profile->buzzer();
$profile->feed(1);
$profile->feed(4);
$this->assertEquals(
Expand Down
10 changes: 5 additions & 5 deletions tests/resources/feed_DR700.bin
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@






2 changes: 1 addition & 1 deletion tests/resources/writeln_MP-4200_TH.bin
Original file line number Diff line number Diff line change
@@ -1 +1 @@
a0test
a0test

0 comments on commit b9c0be7

Please sign in to comment.