We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 20a8b45 commit 9037b25Copy full SHA for 9037b25
adafruit_dymoscale.py
@@ -133,7 +133,7 @@ def get_scale_data(self):
133
the_byte |= bits[byte_n*8 + bit_n]
134
data_bytes[byte_n] = the_byte
135
# do some very basic data checking
136
- if data_bytes[0] != 3 and data_bytes[0] != 2: # check the MSB (differs between DYMO scale models)
+ if data_bytes[0] != 3 and data_bytes[0] != 2:
137
raise RuntimeError("Bad data capture")
138
if data_bytes[1] != 3 or data_bytes[7] != 4 or data_bytes[8] != 0x1C:
139
0 commit comments