diff options
author | Maxim Devaev <[email protected]> | 2022-07-22 06:47:47 +0300 |
---|---|---|
committer | Maxim Devaev <[email protected]> | 2022-07-22 06:47:47 +0300 |
commit | e46229e1d1ef6e34f75d3a87507fde3b6e1779b8 (patch) | |
tree | ae504abc5d9ba20ea52835dad56796a6b4589c0a /hid/lib/drivers-avr | |
parent | f277160396ae7267756f87a215b93a2b5bb7a989 (diff) |
type fix
Diffstat (limited to 'hid/lib/drivers-avr')
-rw-r--r-- | hid/lib/drivers-avr/usb/hid.h | 2 | ||||
-rw-r--r-- | hid/lib/drivers-avr/usb/keymap.h | 2 | ||||
-rw-r--r-- | hid/lib/drivers-avr/usb/keymap.h.mako | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/hid/lib/drivers-avr/usb/hid.h b/hid/lib/drivers-avr/usb/hid.h index dec850a7..1fc80eeb 100644 --- a/hid/lib/drivers-avr/usb/hid.h +++ b/hid/lib/drivers-avr/usb/hid.h @@ -98,7 +98,7 @@ class UsbKeyboard : public DRIVERS::Keyboard { } void sendKey(uint8_t code, bool state) override { - KeyboardKeycode usb_code = keymapUsb(code); + uint8_t usb_code = keymapUsb(code); if (usb_code != KEY_ERROR_UNDEFINED) { if (state ? _kbd.add(usb_code) : _kbd.remove(usb_code)) { _sendCurrent(); diff --git a/hid/lib/drivers-avr/usb/keymap.h b/hid/lib/drivers-avr/usb/keymap.h index 5c885119..2a37b8d9 100644 --- a/hid/lib/drivers-avr/usb/keymap.h +++ b/hid/lib/drivers-avr/usb/keymap.h @@ -25,7 +25,7 @@ #include <HID-Project.h> -KeyboardKeycode keymapUsb(uint8_t code) { +uint8_t keymapUsb(uint8_t code) { switch (code) { case 1: return 4; // KeyA case 2: return 5; // KeyB diff --git a/hid/lib/drivers-avr/usb/keymap.h.mako b/hid/lib/drivers-avr/usb/keymap.h.mako index 8cc8cd42..41986981 100644 --- a/hid/lib/drivers-avr/usb/keymap.h.mako +++ b/hid/lib/drivers-avr/usb/keymap.h.mako @@ -25,7 +25,7 @@ #include <HID-Project.h> <%! import operator %> -KeyboardKeycode keymapUsb(uint8_t code) { +uint8_t keymapUsb(uint8_t code) { switch (code) { % for km in sorted(keymap, key=operator.attrgetter("mcu_code")): % if km.usb_key.is_modifier: |