]> www.fi.muni.cz Git - openparking.git/commitdiff
fix incorrect error state handling for LED2
authorJan "Yenya" Kasprzak <kas@fi.muni.cz>
Mon, 17 Aug 2015 13:20:56 +0000 (15:20 +0200)
committerJan "Yenya" Kasprzak <kas@fi.muni.cz>
Mon, 17 Aug 2015 13:20:56 +0000 (15:20 +0200)
firmware/firmware.c

index d57a5a2b531290a3fdf3ff0ffe8b49b52ce8012b..3554dcc768e38e6deda7bdd7fe5fb8459e52a2c2 100644 (file)
@@ -187,9 +187,9 @@ static void leds_update()
        }
 
        if (led_bitmap & 8) {
-               DDRB |= _BV(PB5);
-       } else {
                DDRB &= ~_BV(PB5);
+       } else {
+               DDRB |= _BV(PB5);
        }
 }