From 6896eaf02683f1e43cc24cb31b18ee9eafc5f2c5 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Sun, 30 Jun 2024 12:41:26 -0400 Subject: [PATCH] Update squelch_cc.py add gpio set mode --- squelch_cc.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/squelch_cc.py b/squelch_cc.py index c3a8ae2a..0c766daf 100644 --- a/squelch_cc.py +++ b/squelch_cc.py @@ -161,6 +161,8 @@ def increment_mode(): sleep(10); except: print("can't write to .mode file") - + +GPIO.setmode(GPIO.BCM) +GPIO.setwarnings(False) while True: command_control_check()