Update squelch_cc.py turn off LEDs sooner

pull/323/head
Alan Johnston 1 year ago committed by GitHub
parent e2a2ef8d37
commit 145b5b363b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -146,29 +146,26 @@ def increment_mode():
try:
print("/home/pi/CubeSatSim/config -" + mode)
if (debug_mode == False):
GPIO.setwarnings(False)
GPIO.output(txLed, 0)
GPIO.output(powerPin, 0)
system("sudo systemctl stop rpitx")
system("/home/pi/CubeSatSim/config -" + mode)
print("Changing mode now")
# file = open("/home/pi/CubeSatSim/.mode", "w")
# count_string = str(command_count)
# file.write(mode)
# file.close()
# print(".mode file written")
GPIO.setwarnings(False)
GPIO.output(txLed, 0)
GPIO.output(powerPin, 0)
system("sudo systemctl stop rpitx")
# print("sudo reboot -h now")
# GPIO.setwarnings(False)
# GPIO.setup(powerPin, GPIO.OUT)
# GPIO.output(powerPin, 0);
# system("reboot -h now")
# release = True;
print("Changing mode now")
# system("/home/pi/CubeSatSim/config -" + mode)
# system("reboot -h now")
print
print(" ")
# sleep(10);
except:
print("can't change mode")

Loading…
Cancel
Save

Powered by TurnKey Linux.