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)