Added LEDs_ToggleLEDs() function to several board LED drivers which were missing...
[pub/lufa.git] / LUFA / Drivers / Board / ATAVRUSBRF01 / LEDs.h
index b0fa0f6..1fe71de 100644 (file)
                        static inline void LEDs_ChangeLEDs(const uint8_t LEDMask,
                                                           const uint8_t ActiveMask)
                        {
-                               PORTD = ((PORTD & ~(LEDMask & LEDS_ALL_LEDS)) | (ActiveMask & LEDS_ALL_LEDS));
+                               PORTD = ((PORTD & ~LEDMask) | ActiveMask);
                        }
 
                        static inline void LEDs_ToggleLEDs(const uint8_t LEDMask)
                        {
-                               PORTD = (PORTD ^ (LEDMask & LEDS_ALL_LEDS));
+                               PORTD ^= LEDMask;
                        }
                        
                        static inline uint8_t LEDs_GetLEDs(void) ATTR_WARN_UNUSED_RESULT;