change file to T or F

fm-rx
Alan Johnston 2 years ago committed by GitHub
parent 0d80dbdd9e
commit d9cea2ae8b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -104,7 +104,11 @@ if __name__ == "__main__":
try: try:
file = open("/home/pi/CubeSatSim/command_tx") file = open("/home/pi/CubeSatSim/command_tx")
command_tx = file.readline().split(" ")[0] char = file.read(1)
if (char == 'T')
command_tx = True
else:
command_tx = False
except: except:
command_tx = True command_tx = True
if (debug_mode == 1): if (debug_mode == 1):

Loading…
Cancel
Save

Powered by TurnKey Linux.