[go: up one dir, main page]

Skip to content

Commit

Permalink
Crc pythonization
Browse files Browse the repository at this point in the history
  • Loading branch information
markmelnic authored Sep 20, 2020
1 parent bcca248 commit 5902a93
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CRC/crc.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ def crc_check(data, div):
data = data + ("0" * (len(div) - 1))
crc = crc_check(data, div)
crc_str = ""
for i in range(len(crc)):
crc_str += str(crc[i])
for c in crc:
crc_str += c
print("Sent data: ", original_data + crc_str)
sent_data = original_data + crc_str
print("If again applying CRC algorithm, the remainder/CRC must be zero if errorless.")
Expand Down

0 comments on commit 5902a93

Please sign in to comment.