Add newline to pipe write

This commit is contained in:
Joshua Boniface 2017-03-31 04:40:10 +00:00
parent 9389293ac3
commit 986d7c53bc
1 changed files with 1 additions and 1 deletions

2
bmcd
View File

@ -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()