This commit is contained in:
tillraab 2019-09-18 17:13:01 +02:00
parent e866d42377
commit 6a2489ed80

View File

@ -301,7 +301,7 @@ def main():
next_temp_t += temp_interval
# blinking LED
if GPIO.input(power_controll_pin) == GPIO.LOW:
if GPIO.input(power_controll_pin) == GPIO.HIGH:
if time() - LED_t < .1 and LED_status[0] == False:
LED_status[0] = True
@ -311,7 +311,7 @@ def main():
GPIO.output(LED1_pin, GPIO.LOW)
if time() - LED_t >= LED_t_interval:
LED_t = time()
elif GPIO.input(power_controll_pin) == GPIO.HIGH:
elif GPIO.input(power_controll_pin) == GPIO.LOW:
print('battery low')
# GPIO.cleanup()
# quit()