mirror of
https://github.com/felis/USB_Host_Shield_2.0.git
synced 2024-03-22 11:31:26 +01:00
Macros were renamed in f38a0f6515
This commit is contained in:
parent
16f124d596
commit
aa235ac3ed
1 changed files with 3 additions and 3 deletions
|
@ -17,15 +17,15 @@ uint8_t KbdRptParser::HandleLockingKeys(HID *hid, uint8_t key) {
|
||||||
uint8_t old_keys = kbdLockingKeys.bLeds;
|
uint8_t old_keys = kbdLockingKeys.bLeds;
|
||||||
|
|
||||||
switch (key) {
|
switch (key) {
|
||||||
case KEY_NUM_LOCK:
|
case UHS_HID_BOOT_KEY_NUM_LOCK:
|
||||||
Serial.println(F("Num lock"));
|
Serial.println(F("Num lock"));
|
||||||
kbdLockingKeys.kbdLeds.bmNumLock = ~kbdLockingKeys.kbdLeds.bmNumLock;
|
kbdLockingKeys.kbdLeds.bmNumLock = ~kbdLockingKeys.kbdLeds.bmNumLock;
|
||||||
break;
|
break;
|
||||||
case KEY_CAPS_LOCK:
|
case UHS_HID_BOOT_KEY_CAPS_LOCK:
|
||||||
Serial.println(F("Caps lock"));
|
Serial.println(F("Caps lock"));
|
||||||
kbdLockingKeys.kbdLeds.bmCapsLock = ~kbdLockingKeys.kbdLeds.bmCapsLock;
|
kbdLockingKeys.kbdLeds.bmCapsLock = ~kbdLockingKeys.kbdLeds.bmCapsLock;
|
||||||
break;
|
break;
|
||||||
case KEY_SCROLL_LOCK:
|
case UHS_HID_BOOT_KEY_SCROLL_LOCK:
|
||||||
Serial.println(F("Scroll lock"));
|
Serial.println(F("Scroll lock"));
|
||||||
kbdLockingKeys.kbdLeds.bmScrollLock = ~kbdLockingKeys.kbdLeds.bmScrollLock;
|
kbdLockingKeys.kbdLeds.bmScrollLock = ~kbdLockingKeys.kbdLeds.bmScrollLock;
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in a new issue