From 8005d1129dd37a604979ab515183e307a3fcadea Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Sun, 30 Jun 2024 16:46:26 -0400 Subject: [PATCH] Update aprs_in.py move rpitx stop --- aprs_in.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/aprs_in.py b/aprs_in.py index 585de872..db16c593 100644 --- a/aprs_in.py +++ b/aprs_in.py @@ -117,9 +117,6 @@ if __name__ == "__main__": GPIO.output(powerPin, 1) sleep(1) - GPIO.output(txLed, 0) - GPIO.output(powerPin, 0) - system("sudo systemctl stop rpitx") try: file = open("/home/pi/CubeSatSim/command_count.txt", "r") string = file.read() @@ -138,5 +135,9 @@ if __name__ == "__main__": print("\n/home/pi/CubeSatSim/config -" + mode) system("/home/pi/CubeSatSim/config -" + mode) + GPIO.output(txLed, 0) + GPIO.output(powerPin, 0) + system("sudo systemctl stop rpitx") + change_mode = False print("Done")