From 4ce3dc5d54a8eca42d5af2f3cea0aeac073fc474 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Sun, 30 Jun 2024 16:47:40 -0400 Subject: [PATCH] Update squelch_cc.py also move rpitx stop --- squelch_cc.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/squelch_cc.py b/squelch_cc.py index b6973e94..a0dc8604 100644 --- a/squelch_cc.py +++ b/squelch_cc.py @@ -147,11 +147,12 @@ def increment_mode(): print("/home/pi/CubeSatSim/config -" + mode) if (debug_mode == False): GPIO.setwarnings(False) + system("/home/pi/CubeSatSim/config -" + mode) + print("Changing mode now") 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)