summaryrefslogtreecommitdiff
path: root/src/usbh_driver_hid_mouse.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/usbh_driver_hid_mouse.c')
-rw-r--r--src/usbh_driver_hid_mouse.c2
1 files changed, 1 insertions, 1 deletions
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;