aboutsummaryrefslogtreecommitdiffstats
path: root/Demos/Host/LowLevel/KeyboardHost
diff options
context:
space:
mode:
authorDean Camera <dean@fourwalledcubicle.com>2009-07-24 01:44:01 +0000
committerDean Camera <dean@fourwalledcubicle.com>2009-07-24 01:44:01 +0000
commit200821fe827230570e253c1679f00bcdb6c5bd94 (patch)
tree0aed41075af0b12258d1dee1c3946e61e9e4d0e0 /Demos/Host/LowLevel/KeyboardHost
parent3991c94b3858bbb02ca9ea6497cf60c84635b99a (diff)
downloadlufa-200821fe827230570e253c1679f00bcdb6c5bd94.tar.gz
lufa-200821fe827230570e253c1679f00bcdb6c5bd94.tar.bz2
lufa-200821fe827230570e253c1679f00bcdb6c5bd94.zip
Added new LEDs_ToggleLEDs() function to the Board LEDs driver.
Diffstat (limited to 'Demos/Host/LowLevel/KeyboardHost')
-rw-r--r--Demos/Host/LowLevel/KeyboardHost/KeyboardHost.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/Demos/Host/LowLevel/KeyboardHost/KeyboardHost.c b/Demos/Host/LowLevel/KeyboardHost/KeyboardHost.c
index 273cd7175..1a53526ba 100644
--- a/Demos/Host/LowLevel/KeyboardHost/KeyboardHost.c
+++ b/Demos/Host/LowLevel/KeyboardHost/KeyboardHost.c
@@ -156,10 +156,7 @@ void ReadNextReport(void)
if (KeyboardReport.KeyCode)
{
/* Toggle status LED to indicate keypress */
- if (LEDs_GetLEDs() & LEDS_LED2)
- LEDs_TurnOffLEDs(LEDS_LED2);
- else
- LEDs_TurnOnLEDs(LEDS_LED2);
+ LEDs_ToggleLEDs(LEDS_LED2);
char PressedKey = 0;