Update squelch_cc.py add print

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

@ -163,19 +163,21 @@ def increment_mode():
# system("reboot -h now") # system("reboot -h now")
# release = True; # release = True;
print("Changing mode now") 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
sleep(10); # sleep(10);
except: except:
print("can't change mode") print("can't change mode")
print("Squelch Command and Control active")
debug_mode = False debug_mode = False
if (len(sys.argv)) > 1: if (len(sys.argv)) > 1:
# print("There are arguments!") # print("There are arguments!")
if ('d' == sys.argv[1]): if ('d' == sys.argv[1]):
debug_mode = True debug_mode = True
print("Debug mode - mode changes not made")
GPIO.setmode(GPIO.BCM) GPIO.setmode(GPIO.BCM)
GPIO.setwarnings(False) GPIO.setwarnings(False)

Loading…
Cancel
Save

Powered by TurnKey Linux.