diff options
author | Maxim Devaev <[email protected]> | 2022-07-09 23:00:13 +0300 |
---|---|---|
committer | Maxim Devaev <[email protected]> | 2022-07-09 23:00:13 +0300 |
commit | ad6a387941012e5c54b1f6e977e4bc5425f9be5d (patch) | |
tree | b45b8e95fcac482cf29b85da72eac21f215761e0 /hid/src/usb/hid.h | |
parent | 38fae01cc01a0e984f52c004ade79256d8c90e17 (diff) |
refactoring
Diffstat (limited to 'hid/src/usb/hid.h')
-rw-r--r-- | hid/src/usb/hid.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/hid/src/usb/hid.h b/hid/src/usb/hid.h index a3641565..e63aa8be 100644 --- a/hid/src/usb/hid.h +++ b/hid/src/usb/hid.h @@ -69,6 +69,7 @@ using namespace DRIVERS; #endif + class UsbKeyboard : public DRIVERS::Keyboard { public: UsbKeyboard() : DRIVERS::Keyboard(DRIVERS::USB_KEYBOARD) {} @@ -110,7 +111,7 @@ class UsbKeyboard : public DRIVERS::Keyboard { KeyboardLedsState getLeds() override { uint8_t leds = _kbd.getLeds(); KeyboardLedsState result = { - .caps = leds & LED_CAPS_LOCK, + .caps = leds & LED_CAPS_LOCK, .scroll = leds & LED_SCROLL_LOCK, .num = leds & LED_NUM_LOCK, }; |