Add newline to pipe write
This commit is contained in:
parent
9389293ac3
commit
986d7c53bc
2
bmcd
2
bmcd
|
@ -68,7 +68,7 @@ def writestate(is_pled_flashing):
|
||||||
state_prev = 1
|
state_prev = 1
|
||||||
while True:
|
while True:
|
||||||
state_now = GPIO.input(gpio_state)
|
state_now = GPIO.input(gpio_state)
|
||||||
fstate.write(str(state_now))
|
fstate.write(str(state_now) + '\n')
|
||||||
if not is_pled_flashing.isSet():
|
if not is_pled_flashing.isSet():
|
||||||
if state_now == 1:
|
if state_now == 1:
|
||||||
powerled_on()
|
powerled_on()
|
||||||
|
|
Loading…
Reference in New Issue