diff options
Diffstat (limited to 'Demos/Host/LowLevel/KeyboardHost/KeyboardHost.c')
-rw-r--r-- | Demos/Host/LowLevel/KeyboardHost/KeyboardHost.c | 5 |
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;
|