From c944be611333e9ef9e064c4bb4da8ce1c49a90b6 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Sun, 30 Jun 2024 18:33:03 -0400 Subject: [PATCH] Update aprs_in.py stop rpitx and CubeSatSim before change mode --- aprs_in.py | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/aprs_in.py b/aprs_in.py index 9b5416c9..d341563c 100644 --- a/aprs_in.py +++ b/aprs_in.py @@ -131,13 +131,16 @@ if __name__ == "__main__": except: print("Can't write command_count file!") print("Command_count: ") - print(command_count) - - print("\n/home/pi/CubeSatSim/config -" + mode) - system("/home/pi/CubeSatSim/config -" + mode) + print(command_count) + GPIO.output(txLed, 0) GPIO.output(powerPin, 0) system("sudo systemctl stop rpitx") + system("sudo systemctl stop cubesatsim") + + print("\n/home/pi/CubeSatSim/config -" + mode) + system("/home/pi/CubeSatSim/config -" + mode) + change_mode = False print("Done")