From 93140f53afd08a51e7f29a331b3879991104a9b3 Mon Sep 17 00:00:00 2001 From: Joshua Boniface Date: Fri, 31 Mar 2017 00:11:21 -0400 Subject: [PATCH] Fix bug where state not actually written to pipe every second (from testing) --- bmcd | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/bmcd b/bmcd index a6e7a1e..9ee1cc9 100755 --- a/bmcd +++ b/bmcd @@ -68,12 +68,7 @@ def writestate(is_pled_flashing): state_prev = 1 while True: state_now = GPIO.input(gpio_state) - if state_now != state_prev: - fstate.write(str(state_now)) - state_prev = state_now - else: - pass - + fstate.write(str(state_now)) if not is_pled_flashing.isSet(): if state_now == 1: powerled_on()