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)
try:
file = open("/home/pi/CubeSatSim/command_count.txt")
string = file.read
file = open("/home/pi/CubeSatSim/command_count.txt", "r")
string = file.read()
command_count = int(string)
except:
command_count = 0

Loading…
Cancel
Save

Powered by TurnKey Linux.