From 8a19fe4fcbfac509623b9217b73a338269f6db90 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Sat, 7 Feb 2026 17:59:15 -0500 Subject: [PATCH] Update transmit.py one more try --- transmit.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/transmit.py b/transmit.py index cc0fafac..eae474c2 100644 --- a/transmit.py +++ b/transmit.py @@ -1003,9 +1003,12 @@ if __name__ == "__main__": print("turn on FM rx") output(pd, 1) output(ptt, 1) - - GPIO.setmode(GPIO.BCM) # added to make Tx LED work on Pi 4 - GPIO.setup(txLed, GPIO.OUT) + + try: + GPIO.setmode(GPIO.BCM) # added to make Tx LED work on Pi 4 + GPIO.setup(txLed, GPIO.OUT) + except: + print("Can't set txLed") if (command_tx == True): system("sudo nc -l 8080 | csdr convert_i16_f | csdr gain_ff 7000 | csdr convert_f_samplerf 20833 | sudo /home/pi/rpitx/rpitx -i- -m RF -f " + tx + "e3 &")