From c7905f9e2eb5e8f9fb91608cf4ee4e0de1edbfc1 Mon Sep 17 00:00:00 2001 From: Varmen8 Date: Sun, 10 Jun 2018 22:55:12 +0200 Subject: [PATCH] Change XModem to 0xFFFF --- main.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/main.py b/main.py index bd60fa3..caf2409 100644 --- a/main.py +++ b/main.py @@ -8,6 +8,15 @@ if __name__ == "__main__": if len(message) % 2 != 0: 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: if message[0] == "0":