From 2f27464ca0d21c2d9bd89aea8151678bc6ad7e46 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Thu, 22 May 2025 15:43:07 -0400 Subject: [PATCH] Update transmit.py 3s at start --- transmit.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/transmit.py b/transmit.py index 4246a498..b079cc52 100644 --- a/transmit.py +++ b/transmit.py @@ -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(4) # wait 3 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 @@ -845,9 +845,9 @@ if __name__ == "__main__": sleep(1) print("No carrier detected, stopping repeater") output(txLed, txLedOff) - system("sudo killall -9 arecord") - system("sudo killall -9 nc") - system("sudo killall -9 rpitx") + system("sudo killall -9 arecord > /dev/null 2>&1") + system("sudo killall -9 nc > /dev/null 2>&1") + system("sudo killall -9 rpitx > /dev/null 2>&1") print("Resetting audio") system("sudo /etc/init.d/alsa-utils stop") system("sudo /etc/init.d/alsa-utils start")