From ea6d804fc60dc33181c8c771de9093053ed9be33 Mon Sep 17 00:00:00 2001 From: "Jan \"Yenya\" Kasprzak" Date: Mon, 17 Aug 2015 15:20:56 +0200 Subject: [PATCH] fix incorrect error state handling for LED2 --- firmware/firmware.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); } } -- 2.43.5