This commit is contained in:
tillraab 2019-09-18 16:20:15 +02:00
parent c200adb5ae
commit edc19f1526

View File

@ -311,7 +311,7 @@ def main():
GPIO.output(LED1_pin, GPIO.LOW) GPIO.output(LED1_pin, GPIO.LOW)
if time() - LED_t >= LED_t_interval: if time() - LED_t >= LED_t_interval:
LED_t = time() LED_t = time()
else: elif GPIO.input(power_controll_pin) == GPIO.HIGH:
print('battery low') print('battery low')
# GPIO.cleanup() # GPIO.cleanup()
# quit() # quit()