From 12a1a021796f78136008c3d94f8cf53f3abcfa47 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Thu, 22 May 2025 10:41:51 -0400 Subject: [PATCH] Update transmit.py check for C2C for 2s --- transmit.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/transmit.py b/transmit.py index d91c133b..3613e473 100644 --- a/transmit.py +++ b/transmit.py @@ -818,9 +818,9 @@ if __name__ == "__main__": if (GPIO.input(squelch) == False) and (command_tx == True): print("Carrier detected, starting repeater") if (no_command == False): - system("sudo systemctl stop command") - print("stopping C2C") sleep(2) + 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 GPIO.setup(txLed, GPIO.OUT) output(txLed, txLedOn)