Update transmit.py back to first 4s

fc-sub
Alan Johnston 7 months ago committed by GitHub
parent 213c4795a7
commit 7fc65a8954
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -826,7 +826,7 @@ if __name__ == "__main__":
if (GPIO.input(squelch) == False) and (command_tx == True): if (GPIO.input(squelch) == False) and (command_tx == True):
print("Carrier detected, starting repeater") print("Carrier detected, starting repeater")
if (no_command == False): if (no_command == False):
# sleep(3) # wait 3 seconds before repeater mode in case it is C2C command sleep(4) # wait 3 seconds before repeater mode in case it is C2C command
print("stopping C2C") print("stopping C2C")
system("sudo systemctl stop command") system("sudo systemctl stop command")
GPIO.setmode(GPIO.BCM) # added to make Tx LED work on Pi Zero 2 and Pi 4 GPIO.setmode(GPIO.BCM) # added to make Tx LED work on Pi Zero 2 and Pi 4
@ -855,8 +855,8 @@ if __name__ == "__main__":
if (no_command == False): if (no_command == False):
system("sudo systemctl restart command") system("sudo systemctl restart command")
print("restarting C2C") print("restarting C2C")
print("Waiting for C2C") # print("Waiting for C2C")
sleep(4) # wait 4 seconds for a C2C command # sleep(4) # wait 4 seconds for a C2C command
print("Ready to detect carrier") print("Ready to detect carrier")
else: else:

Loading…
Cancel
Save

Powered by TurnKey Linux.