diff --git a/actledPi.c b/actledPi.c index 904f2d1..d90a0f8 100644 --- a/actledPi.c +++ b/actledPi.c @@ -119,12 +119,12 @@ void led(int on) { if (current == on) return; - if (on) { - fputs("255\n", actled); - } else { - fputs("0\n", actled); - } - fflush(actled); + if (on) { + fputs("255\n", actled); + } else { + fputs("0\n", actled); + } + fflush(actled); current = on; }