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: try:
print("/home/pi/CubeSatSim/config -" + mode) print("/home/pi/CubeSatSim/config -" + mode)
if (debug_mode == False): 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) system("/home/pi/CubeSatSim/config -" + mode)
print("Changing mode now")
# file = open("/home/pi/CubeSatSim/.mode", "w") # file = open("/home/pi/CubeSatSim/.mode", "w")
# count_string = str(command_count) # count_string = str(command_count)
# file.write(mode) # file.write(mode)
# file.close() # file.close()
# print(".mode file written") # 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") # print("sudo reboot -h now")
# GPIO.setwarnings(False) # GPIO.setwarnings(False)
# GPIO.setup(powerPin, GPIO.OUT) # GPIO.setup(powerPin, GPIO.OUT)
# GPIO.output(powerPin, 0); # GPIO.output(powerPin, 0);
# system("reboot -h now") # system("reboot -h now")
# release = True; # release = True;
print("Changing mode now")
# system("/home/pi/CubeSatSim/config -" + mode) # system("/home/pi/CubeSatSim/config -" + mode)
# system("reboot -h now") # system("reboot -h now")
print print(" ")
# sleep(10); # sleep(10);
except: except:
print("can't change mode") print("can't change mode")

Loading…
Cancel
Save

Powered by TurnKey Linux.