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 bcca248 commit 5902a93Copy full SHA for 5902a93
CRC/crc.py
@@ -34,8 +34,8 @@ def crc_check(data, div):
34
data = data + ("0" * (len(div) - 1))
35
crc = crc_check(data, div)
36
crc_str = ""
37
- for i in range(len(crc)):
38
- crc_str += str(crc[i])
+ for c in crc:
+ crc_str += c
39
print("Sent data: ", original_data + crc_str)
40
sent_data = original_data + crc_str
41
print("If again applying CRC algorithm, the remainder/CRC must be zero if errorless.")
0 commit comments