Update dtmf_aprs_cc.py changed from print to echo for -o

pull/327/head
Alan Johnston 1 year ago committed by GitHub
parent e37594ebfd
commit 57ea8b9a65
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -50,12 +50,12 @@ if __name__ == "__main__":
try:
f = open("/home/pi/CubeSatSim/beacon_off", "r")
f.close()
print("Beacon is on, turning it OFF")
system("echo 'Beacon is on, turning it OFF'")
system("touch /home/pi/CubeSatSim/beacon_off")
except:
print("Beacon is off, turning it ON")
system("sudo rm /home/pi/CubeSatSim/beacon_off")
print("Restarting rpitx")
system("echo 'Beacon is off, turning it ON'")
system("sudo rm /home/pi/CubeSatSim/beacon_off > /dev/null 2>&1")
system("echo 'Restarting rpitx'")
system("sudo systemctl restart rpitx")
change_mode = False
if (debug_mode == False) and (change_mode == True):

Loading…
Cancel
Save

Powered by TurnKey Linux.