diff options
| author | Dean <Dean@d5102386-fcda-11dd-9fdb-3debd5008f28> | 2011-12-26 13:23:43 +0000 |
|---|---|---|
| committer | Dean <Dean@d5102386-fcda-11dd-9fdb-3debd5008f28> | 2011-12-26 13:23:43 +0000 |
| commit | 18db2a2e36da186a2298daed0d2e427d11ffdef7 (patch) | |
| tree | 6a2f6e4094e0b301b2258933c167cf50a1cda5c5 /LUFA/Drivers/Board/AVR8/ADAFRUITU4/LEDs.h | |
| parent | 9b0c63fa0a32478a8f5bdd90a9ab4a23a19cb1f0 (diff) | |
Fixed incorrect implementation of LEDs_ToggleLEDs() for the Adafruit-U4 board (thanks to Caroline Saliman).
git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@2008 d5102386-fcda-11dd-9fdb-3debd5008f28
Diffstat (limited to 'LUFA/Drivers/Board/AVR8/ADAFRUITU4/LEDs.h')
| -rw-r--r-- | LUFA/Drivers/Board/AVR8/ADAFRUITU4/LEDs.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/LUFA/Drivers/Board/AVR8/ADAFRUITU4/LEDs.h b/LUFA/Drivers/Board/AVR8/ADAFRUITU4/LEDs.h index 97f20053..7fa3b471 100644 --- a/LUFA/Drivers/Board/AVR8/ADAFRUITU4/LEDs.h +++ b/LUFA/Drivers/Board/AVR8/ADAFRUITU4/LEDs.h @@ -92,18 +92,18 @@ static inline void LEDs_SetAllLEDs(const uint8_t LEDMask) { - PORTE = ((PORTE & ~LEDS_ALL_LEDS) | LEDMask); + PORTE = ((PORTE & ~LEDS_ALL_LEDS) | LEDMask); } static inline void LEDs_ChangeLEDs(const uint8_t LEDMask, const uint8_t ActiveMask) { - PORTE = ((PORTE & ~LEDMask) | ActiveMask); + PORTE = ((PORTE & ~LEDMask) | ActiveMask); } static inline void LEDs_ToggleLEDs(const uint8_t LEDMask) { - PORTE &= LEDMask; + PORTE ^= LEDMask; } static inline uint8_t LEDs_GetLEDs(void) ATTR_WARN_UNUSED_RESULT; |
