read status from command_tx

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

@ -16,7 +16,7 @@ ptt = 20
txc = 7
squelch = 6
command_tx = True
# command_tx = True
GPIO.setmode(GPIO.BCM)
GPIO.setwarnings(False)
@ -102,6 +102,16 @@ if __name__ == "__main__":
print("Mode is: ")
print(mode)
try:
file = open("/home/pi/CubeSatSim/command_tx")
command_tx = file.readline().split(" ")[0]
except:
command_tx = True
if (debug_mode == 1):
print("Can't open command_tx file, defaulting to True")
print("Command_tx: ")
print(command_tx)
try:
file = open("/home/pi/CubeSatSim/sim.cfg")
callsign = file.readline().split(" ")[0]

Loading…
Cancel
Save

Powered by TurnKey Linux.