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")