From edc19f15267f1c5e5cc0bcc14fbcbfeb9799bf2f Mon Sep 17 00:00:00 2001 From: tillraab Date: Wed, 18 Sep 2019 16:20:15 +0200 Subject: [PATCH] bf --- rasp_grid.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rasp_grid.py b/rasp_grid.py index 679973e..a2da87a 100644 --- a/rasp_grid.py +++ b/rasp_grid.py @@ -311,7 +311,7 @@ def main(): GPIO.output(LED1_pin, GPIO.LOW) if time() - LED_t >= LED_t_interval: LED_t = time() - else: + elif GPIO.input(power_controll_pin) == GPIO.HIGH: print('battery low') # GPIO.cleanup() # quit()