Change XModem to 0xFFFF

This commit is contained in:
Varmen8 2018-06-10 22:55:12 +02:00
parent 7fb10a9d28
commit c7905f9e2e

View File

@ -8,6 +8,15 @@ if __name__ == "__main__":
if len(message) % 2 != 0: if len(message) % 2 != 0:
message = "0" + message message = "0" + message
swapped = list(message)
for i in range(gen_deg - 1):
if swapped[i] == "0":
swapped[i] = "1"
else:
swapped[i] = "0"
message = "".join(swapped)
while True: while True:
if message[0] == "0": if message[0] == "0":