X-Git-Url: http://git.linex4red.de/pub/lufa.git/blobdiff_plain/d860e9e842c05e759214f5170f78783decae9956..e21b620bf6cc9fb1bb9e516efb57b1cb12c00085:/Demos/Device/Mouse/Mouse.c diff --git a/Demos/Device/Mouse/Mouse.c b/Demos/Device/Mouse/Mouse.c index 2e5f05b42..669b576a6 100644 --- a/Demos/Device/Mouse/Mouse.c +++ b/Demos/Device/Mouse/Mouse.c @@ -190,10 +190,10 @@ EVENT_HANDLER(USB_UnhandledControlPacket) { USB_MouseReport_Data_t MouseReportData; + Endpoint_ClearSETUP(); + /* Create the next mouse report for transmission to the host */ CreateMouseReport(&MouseReportData); - - Endpoint_ClearSETUP(); /* Write the report data to the control endpoint */ Endpoint_Write_Control_Stream_LE(&MouseReportData, sizeof(MouseReportData));