File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -98,10 +98,7 @@ def _send_command(self):
98
98
# Send a status request
99
99
cmdBin = array .array ("B" , [ESC , ord ("A" )])
100
100
cmdBin .tofile (self ._devout )
101
- # Increase buffer size to 16 bytes to prevent overflow
102
- # on LabelManager 280
103
- # https://libusb.sourceforge.io/api-1.0/libusb_packetoverflow.html
104
- rspBin = self ._devin .read (16 )
101
+ rspBin = self ._devin .read (512 )
105
102
_ = array .array ("B" , rspBin ).tolist ()
106
103
# Ok, we got a response. Now we can send a chunk of data
107
104
@@ -132,7 +129,7 @@ def _send_command(self):
132
129
if not self ._response :
133
130
return None
134
131
self ._response = False
135
- responseBin = self ._devin .read (16 )
132
+ responseBin = self ._devin .read (512 )
136
133
response = array .array ("B" , responseBin ).tolist ()
137
134
return response
138
135
You can’t perform that action at this time.
0 commit comments