|
|
|
|
@ -826,7 +826,7 @@ if __name__ == "__main__":
|
|
|
|
|
if (GPIO.input(squelch) == False) and (command_tx == True):
|
|
|
|
|
print("Carrier detected, starting repeater")
|
|
|
|
|
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")
|
|
|
|
|
system("sudo systemctl stop command")
|
|
|
|
|
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):
|
|
|
|
|
system("sudo systemctl restart command")
|
|
|
|
|
print("restarting C2C")
|
|
|
|
|
print("Waiting for C2C")
|
|
|
|
|
sleep(4) # wait 4 seconds for a C2C command
|
|
|
|
|
# print("Waiting for C2C")
|
|
|
|
|
# sleep(4) # wait 4 seconds for a C2C command
|
|
|
|
|
print("Ready to detect carrier")
|
|
|
|
|
|
|
|
|
|
else:
|
|
|
|
|
|