Skip to content

Commit 5902a93

Browse files
authored
Crc pythonization
1 parent bcca248 commit 5902a93

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

CRC/crc.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ def crc_check(data, div):
3434
data = data + ("0" * (len(div) - 1))
3535
crc = crc_check(data, div)
3636
crc_str = ""
37-
for i in range(len(crc)):
38-
crc_str += str(crc[i])
37+
for c in crc:
38+
crc_str += c
3939
print("Sent data: ", original_data + crc_str)
4040
sent_data = original_data + crc_str
4141
print("If again applying CRC algorithm, the remainder/CRC must be zero if errorless.")

0 commit comments

Comments
 (0)