From 2dc441dd08341d81c8f88d57062336fc6fc96943 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Wed, 21 May 2025 11:02:00 -0400 Subject: [PATCH] Update transmit.py add beacon mode on/off to repeater --- transmit.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/transmit.py b/transmit.py index de96cf3e..83bcaf45 100644 --- a/transmit.py +++ b/transmit.py @@ -810,9 +810,11 @@ if __name__ == "__main__": # GPIO.output(powerPin, 1) # was 0 txf = float(tx) - 288.9 print("Transmit frequency: ",txf) + if (command_tx != True): + print("Beacon mode off so no repeater transmission") while True: sleep(1) - if (GPIO.input(squelch) == False): + if (GPIO.input(squelch) == False) and (command_tx == True): print("Carrier detected, starting repeater") GPIO.setmode(GPIO.BCM) # added to make Tx LED work on Pi Zero 2 and Pi 4 GPIO.setup(txLed, GPIO.OUT)