From 4aa69b4eaf44757aa71997e4a59f0889ea6e23f4 Mon Sep 17 00:00:00 2001 From: Amir Hammad Date: Thu, 1 Sep 2016 14:16:17 +0200 Subject: make usbh_packet->data of union type out: const void * in: void * Signed-off-by: Amir Hammad --- src/usbh_driver_hid_mouse.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/usbh_driver_hid_mouse.c') diff --git a/src/usbh_driver_hid_mouse.c b/src/usbh_driver_hid_mouse.c index 9d438a9..b52392f 100644 --- a/src/usbh_driver_hid_mouse.c +++ b/src/usbh_driver_hid_mouse.c @@ -214,7 +214,7 @@ static void read_mouse_in(void *drvdata) usbh_packet_t packet; packet.address = mouse->usbh_device->address; - packet.data = &mouse->buffer[0]; + packet.data.in = &mouse->buffer[0]; packet.datalen = mouse->endpoint_in_maxpacketsize; packet.endpoint_address = mouse->endpoint_in_address; packet.endpoint_size_max = mouse->endpoint_in_maxpacketsize; -- cgit