Update transmit.py 3s, add 3s after release

fc-sub
Alan Johnston 7 months ago committed by GitHub
parent 52be832b7a
commit 8ef731e71f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -822,11 +822,11 @@ if __name__ == "__main__":
print("Beacon mode off so no repeater transmission")
while True:
sleep(1)
sleep(3) # wait 3 seconds for a C2C command
if (GPIO.input(squelch) == False) and (command_tx == True):
print("Carrier detected, starting repeater")
if (no_command == False):
sleep(2) # wait 2 seconds before repeater mode in case it is C2C command
sleep(3) # wait 3 seconds before repeater mode in case it is C2C command
print("stopping C2C")
system("sudo systemctl stop command")
GPIO.setmode(GPIO.BCM) # added to make Tx LED work on Pi Zero 2 and Pi 4

Loading…
Cancel
Save

Powered by TurnKey Linux.