mirror of
https://github.com/hathach/tinyusb.git
synced 2025-02-21 03:40:52 +00:00
fix const discard warning
This commit is contained in:
parent
2622cc487b
commit
f5e7644a1e
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user