mirror of
https://github.com/zsa/qmk_firmware.git
synced 2026-05-04 23:12:57 +00:00
Added new LEDs_ToggleLEDs() function to the Board LEDs driver.
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user