diff options
| author | hathach <[email protected]> | 2013-03-25 18:07:33 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2013-03-25 18:07:33 +0700 |
| commit | f5e7644a1e05f92149ce4fe3e16ed64120fb46bf (patch) | |
| tree | 6ee176fe4dbdf701beeedc8c9af7bbbc51ee4294 /tinyusb/class | |
| parent | 2622cc487bb4a35a0ded8512255d21a78807a4f5 (diff) | |
fix const discard warning
Diffstat (limited to 'tinyusb/class')
| -rw-r--r-- | tinyusb/class/hid_host_keyboard.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tinyusb/class/hid_host_keyboard.c b/tinyusb/class/hid_host_keyboard.c index 43031d6eb..f37ca3507 100644 --- a/tinyusb/class/hid_host_keyboard.c +++ b/tinyusb/class/hid_host_keyboard.c @@ -101,7 +101,7 @@ void hidh_keyboard_init(void) tusb_error_t hidh_keyboard_open_subtask(uint8_t dev_addr, uint8_t const *descriptor, uint16_t *p_length) { - uint8_t *p_desc = descriptor; + uint8_t const *p_desc = descriptor; p_desc += p_desc[DESCRIPTOR_OFFSET_LENGTH]; // skip interface p_desc += p_desc[DESCRIPTOR_OFFSET_LENGTH]; // TODO skip HID, only support std keyboard |
