Skip to content
Open
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
4 changes: 0 additions & 4 deletions lib27gn950.py
Original file line number Diff line number Diff line change
Expand Up @@ -246,10 +246,6 @@ def calc_crc(data):
crc = 0
for bit in data:
crc ^= bit
for _ in range(8):
crc <<= 1
if crc & 0x100:
crc ^= 0x101
# trim off the '0x' that hex() adds, and pad with a leading 0 if needed
crc = hex(crc)[2:]
if len(crc) == 1:
Expand Down