Update rpitx.py to create command_count.txt if not present

sr-frs-rx
Alan Johnston 2 years ago committed by GitHub
parent 7972f4a09c
commit 2fd07ab57f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -127,6 +127,10 @@ if __name__ == "__main__":
command_count = 0
if (debug_mode == 1):
print("Can't open command_count file, setting to 0")
file = open("/home/pi/CubeSatSim/command_count.txt", "w")
count_string = str(command_count)
file.write(count_string)
file.close()
print("Command_count: ")
print(command_count)

Loading…
Cancel
Save

Powered by TurnKey Linux.