diff options
author | Daniel Friesel <derf@finalrewind.org> | 2016-01-30 17:47:19 +0100 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2016-01-30 17:47:19 +0100 |
commit | 6f3959fe992199a7830bd8dd7e0ec10da867a4cf (patch) | |
tree | 8cd76d79bf81f50698a4f31fe78cb95db0c2eef6 | |
parent | 5ed92291f1d45d7e61d59779201e8e4c04d9639e (diff) |
firmware: Fix LED polarity mixup
-rw-r--r-- | firmware/main.c | 6 |
1 files changed, 3 insertions, 3 deletions
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; |