X-Git-Url: http://git.linex4red.de/pub/lufa.git/blobdiff_plain/3ffa7543a05761a0c69144c9b66196b08d8f1249..242303c1607fca405d9407b9fab6fb78cae676e2:/Demos/Host/ClassDriver/MouseHostWithParser/MouseHostWithParser.c diff --git a/Demos/Host/ClassDriver/MouseHostWithParser/MouseHostWithParser.c b/Demos/Host/ClassDriver/MouseHostWithParser/MouseHostWithParser.c index 8133c8743..c33b2ebde 100644 --- a/Demos/Host/ClassDriver/MouseHostWithParser/MouseHostWithParser.c +++ b/Demos/Host/ClassDriver/MouseHostWithParser/MouseHostWithParser.c @@ -120,7 +120,7 @@ int main(void) case HOST_STATE_Configured: if (HID_Host_IsReportReceived(&Mouse_HID_Interface)) { - uint8_t MouseReport[50]; + uint8_t MouseReport[Keyboard_HID_Interface.State.LargestReportSize]; HID_Host_ReceiveReport(&Mouse_HID_Interface, &MouseReport); uint8_t LEDMask = LEDS_NO_LEDS;