Update rpitx.py to use different file pointer

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

@ -577,11 +577,11 @@ if __name__ == "__main__":
try:
command_count += 1
file = open("/home/pi/CubeSatSim/command_count.txt", "w")
string = file.write(str(command_count))
filec = open("/home/pi/CubeSatSim/command_count.txt", "w")
string = filec.write(str(command_count))
except:
if (debug_mode == 1):
print("Can't write command_count file")
print("Can't write command_count file!")
print("Command_count: ")
print(command_count)

Loading…
Cancel
Save

Powered by TurnKey Linux.