Update transmit.py add beacon mode on/off to repeater

fc-sub
Alan Johnston 7 months ago committed by GitHub
parent 392ff768cc
commit 2dc441dd08
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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

Loading…
Cancel
Save

Powered by TurnKey Linux.