summaryrefslogtreecommitdiff
path: root/src/class
diff options
context:
space:
mode:
authorhathach <[email protected]>2018-07-26 16:01:14 +0700
committerhathach <[email protected]>2018-07-26 16:01:14 +0700
commitfaf88d00c2a03a38465932b1e8215656ba56316a (patch)
tree2f344d89a69bde83de101d1497d3091bcddf7634 /src/class
parenta9c04e9ff18b63eda26a0c5a6bc9d4cc4e529276 (diff)
clean up
Diffstat (limited to 'src/class')
-rw-r--r--src/class/hid/hid_device.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/class/hid/hid_device.c b/src/class/hid/hid_device.c
index 7aeb39957..316067e61 100644
--- a/src/class/hid/hid_device.c
+++ b/src/class/hid/hid_device.c
@@ -446,6 +446,8 @@ tusb_error_t hidd_xfer_cb(uint8_t rhport, uint8_t edpt_addr, tusb_event_t event,
/*------------------------------------------------------------------*/
/* Ascii to Keycode
*------------------------------------------------------------------*/
+#if CFG_TUD_HID_ASCII_TO_KEYCODE_LOOKUP
+
const hid_ascii_to_keycode_entry_t HID_ASCII_TO_KEYCODE[128] =
{
{0, 0 }, // 0x00 Null
@@ -582,3 +584,5 @@ const hid_ascii_to_keycode_entry_t HID_ASCII_TO_KEYCODE[128] =
};
#endif
+
+#endif