projects
/
pub
/
USBasp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Added new LEDs_ToggleLEDs() function to the Board LEDs driver.
[pub/USBasp.git]
/
Demos
/
Host
/
LowLevel
/
KeyboardHostWithParser
/
KeyboardHostWithParser.c
diff --git
a/Demos/Host/LowLevel/KeyboardHostWithParser/KeyboardHostWithParser.c
b/Demos/Host/LowLevel/KeyboardHostWithParser/KeyboardHostWithParser.c
index
eee1755
..
2cc08a1
100644
(file)
--- a/
Demos/Host/LowLevel/KeyboardHostWithParser/KeyboardHostWithParser.c
+++ b/
Demos/Host/LowLevel/KeyboardHostWithParser/KeyboardHostWithParser.c
@@
-250,10
+250,7
@@
void ProcessKeyboardReport(uint8_t* KeyboardReport)
if (KeyCode)
\r
{
\r
/* Toggle status LED to indicate keypress */
\r
- if (LEDs_GetLEDs() & LEDS_LED2)
\r
- LEDs_TurnOffLEDs(LEDS_LED2);
\r
- else
\r
- LEDs_TurnOnLEDs(LEDS_LED2);
\r
+ LEDs_ToggleLEDs(LEDS_LED2);
\r
\r
char PressedKey = 0;
\r
\r