{\r
Endpoint_ClearSETUP(); \r
\r
- uint16_t ReportINSize;\r
- uint8_t ReportID = (USB_ControlRequest.wValue & 0xFF);\r
+ uint16_t ReportINSize = 0;\r
+ uint8_t ReportID = (USB_ControlRequest.wValue & 0xFF);\r
\r
memset(HIDInterfaceInfo->Config.PrevReportINBuffer, 0, HIDInterfaceInfo->Config.PrevReportINBufferSize);\r
\r
if (Endpoint_IsReadWriteAllowed())\r
{\r
uint8_t ReportINData[HIDInterfaceInfo->Config.PrevReportINBufferSize];\r
- uint8_t ReportID = 0;\r
- uint16_t ReportINSize;\r
+ uint8_t ReportID = 0;\r
+ uint16_t ReportINSize = 0;\r
\r
memset(ReportINData, 0, sizeof(ReportINData));\r
\r
* - Added hardware USART receive interrupt and software buffering to the Benito project to ensure received data is not\r
* missed or corrupted\r
* - Fixed Device mode HID Class driver always sending IN packets, even when nothing to report\r
+ * - Fixed Device mode HID Class driver not explicitly initializing the ReportSize parameter to zero before calling callback\r
+ * routine, so that ignored callbacks don't cause incorrect data to be sent\r
*\r
*\r
* \section Sec_ChangeLog090810 Version 090810\r
* or post your suggestion as an enhancement request to the project bug tracker.\r
*\r
* <b>Targeted for This Release:</b>\r
- * - Simplify Mass Storage Host LowLevel SCSI demo\r
* - Finish Host Mode Class Drivers\r
* ( ) Audio\r
* (C) CDC\r