fixed command_count.txt read

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

@ -120,8 +120,8 @@ if __name__ == "__main__":
print(command_tx) print(command_tx)
try: try:
file = open("/home/pi/CubeSatSim/command_count.txt") file = open("/home/pi/CubeSatSim/command_count.txt", "r")
string = file.read string = file.read()
command_count = int(string) command_count = int(string)
except: except:
command_count = 0 command_count = 0

Loading…
Cancel
Save

Powered by TurnKey Linux.