From d1b1c1c9b1f3283a91574df9307f5bc6b4b2fed0 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Sun, 30 Jul 2023 21:09:43 -0400 Subject: [PATCH] move aprs squelch read back --- rpitx.py | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/rpitx.py b/rpitx.py index 4fc8f4a3..eea506bd 100644 --- a/rpitx.py +++ b/rpitx.py @@ -196,12 +196,6 @@ if __name__ == "__main__": output(txLed, txLedOff) system("sudo rm /home/pi/CubeSatSim/ready") f.close() - - if (debug_mode == 1): - print("Ready for next packet!") - - sleep(0.5) - except: if GPIO.input(squelch) == False: print("carrier received!") command_tx = not command_tx @@ -215,6 +209,13 @@ if __name__ == "__main__": else: print("Turning off transmit") system("echo > command_tx False") + + if (debug_mode == 1): + print("Ready for next packet!") + + sleep(0.5) + except: + sleep(0.5) elif (mode == 'm'): print("CW")