From f5e7644a1e05f92149ce4fe3e16ed64120fb46bf Mon Sep 17 00:00:00 2001 From: hathach Date: Mon, 25 Mar 2013 18:07:33 +0700 Subject: [PATCH] fix const discard warning --- tinyusb/class/hid_host_keyboard.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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