From 6f3959fe992199a7830bd8dd7e0ec10da867a4cf Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sat, 30 Jan 2016 17:47:19 +0100 Subject: firmware: Fix LED polarity mixup --- firmware/main.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'firmware') diff --git a/firmware/main.c b/firmware/main.c index 56f2970..1da4bd6 100644 --- a/firmware/main.c +++ b/firmware/main.c @@ -136,7 +136,7 @@ int main(void) usbDeviceConnect(); TCCR0 = 5; /* set prescaler to 1/1024 */ usbInit(); - PORTD = _BV(0); /* turn on power LED */ + PORTD = _BV(1); /* turn on power LED */ sei(); for(;;){ /* main event loop */ wdt_reset(); @@ -144,9 +144,9 @@ int main(void) if (TIFR & (1 << TOV0)){ TIFR |= 1 << TOV0; /* clear pending flag */ if (PINB & _BV(PB7)) - PORTD = _BV(0); /* SCL high : turn on power LED */ + PORTD = _BV(1); /* SCL high : turn on power LED */ else - PORTD = _BV(1); /* SCL low (busy) : turn on activity LED */ + PORTD = _BV(0); /* SCL low (busy) : turn on activity LED */ } } return 0; -- cgit v1.2.3