Update transmit.py check for failure_mode 10 no FM audio

master-latency
Alan Johnston 4 months ago committed by GitHub
parent 25495ef324
commit 394ced012e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -472,6 +472,16 @@ if __name__ == "__main__":
print("Ready for next packet!") print("Ready for next packet!")
sleep(0.5) sleep(0.5)
try:
file = open("/home/pi/CubeSatSim/failure_mode.txt")
fail_mode = file.read(2)
if (fail_mode == "10"):
card = "Device" # Change audio so no FM audio plays
print("Failure mode no FM audio")
else:
print("Other failure mode")
except:
print("No failure mode")
except: except:
# command_control_check() # command_control_check()
sleep(1) sleep(1)

Loading…
Cancel
Save

Powered by TurnKey Linux.