diff options
author | Luke T. Shumaker <lukeshu@lukeshu.com> | 2024-09-17 10:38:00 -0600 |
---|---|---|
committer | Luke T. Shumaker <lukeshu@lukeshu.com> | 2024-09-17 10:38:00 -0600 |
commit | 82634b3b8eabcc966c5480c4a58b81dbcb49d022 (patch) | |
tree | d2656fb79cbed6771534fb103467e1e8494a2779 /usb_keyboard.c | |
parent | 86c29ffaa35592f16f6b1624002dcd97daf73511 (diff) |
fix
Diffstat (limited to 'usb_keyboard.c')
-rw-r--r-- | usb_keyboard.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usb_keyboard.c b/usb_keyboard.c index 6b5edec..eed1b88 100644 --- a/usb_keyboard.c +++ b/usb_keyboard.c @@ -84,7 +84,7 @@ uint8_t const *tud_hid_descriptor_report_cb(uint8_t index) { static uint8_t const *reports[] = { hid_report_descriptor_keyboard, }; - if (index >= sizeof reports / sizeof reports[0]) + if (index >= TU_ARRAY_SIZE(reports)) return NULL; return reports[index]; } |