From 41e29e625904a063783caa5e6ac6834e945b5cb5 Mon Sep 17 00:00:00 2001 From: Ayitaka <22988712+Ayitaka@users.noreply.github.com> Date: Wed, 10 May 2023 14:37:43 -0700 Subject: [PATCH] Fixes "RuntimeWarning: A physical pull up resistor is fitted on this channel!" error - Ref: Issue #12 - Ref: Issue #34 --- listen-for-shutdown.py | 1 + 1 file changed, 1 insertion(+) diff --git a/listen-for-shutdown.py b/listen-for-shutdown.py index cecc42b..b9c47bf 100755 --- a/listen-for-shutdown.py +++ b/listen-for-shutdown.py @@ -5,6 +5,7 @@ import subprocess +GPIO.setwarnings(False) GPIO.setmode(GPIO.BCM) GPIO.setup(3, GPIO.IN, pull_up_down=GPIO.PUD_UP) GPIO.wait_for_edge(3, GPIO.FALLING)