From e4f4edf7ef0a89a4a14d16dbe40912dcc98d8895 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Sun, 15 Jun 2025 16:44:31 -0400 Subject: [PATCH] Update squelch_cc.py move wall --- squelch_cc.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/squelch_cc.py b/squelch_cc.py index 6caa252b..771cc27a 100644 --- a/squelch_cc.py +++ b/squelch_cc.py @@ -105,7 +105,9 @@ def increment_mode(): try: print("/home/pi/CubeSatSim/config -" + mode) - if (debug_mode == False): + if (debug_mode == False): + print("Changing mode now") + os.system("echo 'changing mode due to C2C!' | wall") GPIO.setwarnings(False) GPIO.output(txLed, 0) GPIO.output(powerPin, 0) @@ -113,8 +115,6 @@ def increment_mode(): system("sudo systemctl stop cubesatsim") system("/home/pi/CubeSatSim/config -" + mode) - print("Changing mode now") - os.system("echo 'changing mode due to C2C!' | wall") # file = open("/home/pi/CubeSatSim/.mode", "w")