Skip to content

Commit

Permalink
Merge pull request #76 from poita66/fix-overflow-bug
Browse files Browse the repository at this point in the history
Fix Frequent overflow issues #68 on LabelManager 280
  • Loading branch information
maresb authored Sep 29, 2024
2 parents 5f662c0 + d952897 commit a88fb76
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/labelle/lib/devices/dymo_labeler.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ def _send_command(self):
# Send a status request
cmdBin = array.array("B", [ESC, ord("A")])
cmdBin.tofile(self._devout)
rspBin = self._devin.read(8)
rspBin = self._devin.read(512)
_ = array.array("B", rspBin).tolist()
# Ok, we got a response. Now we can send a chunk of data

Expand Down Expand Up @@ -129,7 +129,7 @@ def _send_command(self):
if not self._response:
return None
self._response = False
responseBin = self._devin.read(8)
responseBin = self._devin.read(512)
response = array.array("B", responseBin).tolist()
return response

Expand Down

0 comments on commit a88fb76

Please sign in to comment.