From: Jan "Yenya" Kasprzak Date: Mon, 17 Aug 2015 13:20:56 +0000 (+0200) Subject: fix incorrect error state handling for LED2 X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?p=openparking.git;a=commitdiff_plain;h=ea6d804fc60dc33181c8c771de9093053ed9be33 fix incorrect error state handling for LED2 --- diff --git a/firmware/firmware.c b/firmware/firmware.c index d57a5a2..3554dcc 100644 --- a/firmware/firmware.c +++ b/firmware/firmware.c @@ -187,9 +187,9 @@ static void leds_update() } if (led_bitmap & 8) { - DDRB |= _BV(PB5); - } else { DDRB &= ~_BV(PB5); + } else { + DDRB |= _BV(PB5); } }