Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion adafruit_lc709203f.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,8 @@ def _generate_crc(self, data):
crc = (crc << 1) ^ 0x07
else:
crc <<= 1
return crc & 0xFF
crc &= 0xFF
return crc

def _read_word(self, command):
self._buf[0] = LC709203F_I2CADDR_DEFAULT * 2 # write byte
Expand Down