Fixed inverted LED driving code for the Arduino Leonardo board. Fixed inverted LEDs_GetLEDs() function implementation for the Benito, Minimus and Arduino UNO boards.

This commit is contained in:
Dean Camera 2012-08-12 17:25:39 +00:00
parent 6fb6c628fa
commit 40755d4fde
6 changed files with 30 additions and 30 deletions

View file

@ -124,7 +124,7 @@
static inline uint8_t LEDs_GetLEDs(void) ATTR_WARN_UNUSED_RESULT;
static inline uint8_t LEDs_GetLEDs(void)
{
return (PORTD & LEDS_ALL_LEDS);
return (~PORTD & LEDS_ALL_LEDS);
}
#endif