diff --git a/netledPi.c b/netledPi.c index 2ca1a4c..a2ab93a 100644 --- a/netledPi.c +++ b/netledPi.c @@ -132,11 +132,11 @@ void led(int on) { if (current == on) return; - if (on) { - digitalWrite (o_gpiopin, HIGH); - } else { - digitalWrite (o_gpiopin, LOW); - } + if (on) { + digitalWrite (o_gpiopin, HIGH); + } else { + digitalWrite (o_gpiopin, LOW); + } current = on; }