aboutsummaryrefslogtreecommitdiffstats
path: root/LUFA/Drivers/Board/ATAVRUSBRF01/LEDs.h
diff options
context:
space:
mode:
authorDean Camera <dean@fourwalledcubicle.com>2009-05-05 14:02:02 +0000
committerDean Camera <dean@fourwalledcubicle.com>2009-05-05 14:02:02 +0000
commitf11f69fd2989899b3088ea7d11b981f2d68c05e0 (patch)
tree41b86aed89f0697733202b705c506d9cde4a7e87 /LUFA/Drivers/Board/ATAVRUSBRF01/LEDs.h
parent253deb996f321c59c102a64e17f95d0b5b0a0e6d (diff)
downloadlufa-f11f69fd2989899b3088ea7d11b981f2d68c05e0.tar.gz
lufa-f11f69fd2989899b3088ea7d11b981f2d68c05e0.tar.bz2
lufa-f11f69fd2989899b3088ea7d11b981f2d68c05e0.zip
Fixed missing semicolon in the ATAVRUSBRF01 LED board driver code, changed LED board driver code to define dummy LED masks for the first four board LEDs so that user code can be compiled for boards with less than four LEDs without code modifications (thanks to Morten Lund).
Diffstat (limited to 'LUFA/Drivers/Board/ATAVRUSBRF01/LEDs.h')
-rw-r--r--LUFA/Drivers/Board/ATAVRUSBRF01/LEDs.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/LUFA/Drivers/Board/ATAVRUSBRF01/LEDs.h b/LUFA/Drivers/Board/ATAVRUSBRF01/LEDs.h
index a073d2ef5..9f808279a 100644
--- a/LUFA/Drivers/Board/ATAVRUSBRF01/LEDs.h
+++ b/LUFA/Drivers/Board/ATAVRUSBRF01/LEDs.h
@@ -108,7 +108,7 @@
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 & LEDS_ALL_LEDS)) | (ActiveMask & LEDS_ALL_LEDS));
}
static inline uint8_t LEDs_GetLEDs(void) ATTR_WARN_UNUSED_RESULT;