From 47d4bc68acc8b269331340ef1cbeb6141f924a15 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Thu, 12 Feb 2026 15:27:17 -0500 Subject: [PATCH] Update dtmf_aprs_cc.py put try around GPIO setup --- dtmf_aprs_cc.py | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/dtmf_aprs_cc.py b/dtmf_aprs_cc.py index dad50ce9..d52d2135 100644 --- a/dtmf_aprs_cc.py +++ b/dtmf_aprs_cc.py @@ -106,9 +106,14 @@ if __name__ == "__main__": if (debug_mode == False) and (change_mode == True): # skip every other APRS command since Direwolf prints them twice GPIO.setmode(GPIO.BCM) GPIO.setwarnings(False) - GPIO.setup(powerPin, GPIO.OUT) - GPIO.setup(txLed, GPIO.OUT) - + try: + GPIO.setup(powerPin, GPIO.OUT) + except: + print("GPIO powerPin setup problem") + try: + GPIO.setup(txLed, GPIO.OUT) + except: + print("GPIO txLed setup problem") if (mode == 'f'): GPIO.output(powerPin, 0) # blink two times sleep(0.1)