Change XModem to 0xFFFF
This commit is contained in:
parent
7fb10a9d28
commit
c7905f9e2e
9
main.py
9
main.py
@ -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":
|
||||||
|
Loading…
Reference in New Issue
Block a user