diff options
author | Maxim Devaev <[email protected]> | 2022-07-30 00:03:52 +0300 |
---|---|---|
committer | Maxim Devaev <[email protected]> | 2022-07-30 00:03:52 +0300 |
commit | 5933e1ce205c03f795a62cf93cf6f6aadcd5314b (patch) | |
tree | 1980820e0a6dcca82ff1de3d1a62ef14551c9536 /hid | |
parent | caf1a89ec64d3441b79b6e0ae8d59fdadfbb68a8 (diff) |
cast fix
Diffstat (limited to 'hid')
-rw-r--r-- | hid/lib/drivers-avr/usb/hid.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hid/lib/drivers-avr/usb/hid.h b/hid/lib/drivers-avr/usb/hid.h index 2712734b..654c779d 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 { - uint8_t usb_code = keymapUsb(code); + enum KeyboardKeycode usb_code = keymapUsb(code); if (usb_code > 0) { if (state ? _kbd.add(usb_code) : _kbd.remove(usb_code)) { _sendCurrent(); |