@ -68,7 +68,7 @@ def writestate(is_pled_flashing):
state_prev = 1
while True:
state_now = GPIO.input(gpio_state)
fstate.write(str(state_now))
fstate.write(str(state_now) + '\n')
if not is_pled_flashing.isSet():
if state_now == 1:
powerled_on()