mirror of
https://github.com/qmk/qmk_firmware.git
synced 2025-07-16 12:51:47 +00:00
Fixed endpoint selection within the CALLBACK_HID_Device_CreateHIDReport() callback function causing broken GET REPORT requests.
Minor whitespace fixes.
This commit is contained in:
parent
5f3c4cc6e0
commit
b48095c0fb
@ -60,8 +60,9 @@ void HID_Device_ProcessControlRequest(USB_ClassInfo_HID_Device_t* const HIDInter
|
|||||||
if (HIDInterfaceInfo->Config.PrevReportINBuffer != NULL)
|
if (HIDInterfaceInfo->Config.PrevReportINBuffer != NULL)
|
||||||
memcpy(HIDInterfaceInfo->Config.PrevReportINBuffer, ReportData, HIDInterfaceInfo->Config.PrevReportINBufferSize);
|
memcpy(HIDInterfaceInfo->Config.PrevReportINBuffer, ReportData, HIDInterfaceInfo->Config.PrevReportINBufferSize);
|
||||||
|
|
||||||
Endpoint_ClearSETUP();
|
|
||||||
Endpoint_SelectEndpoint(ENDPOINT_CONTROLEP);
|
Endpoint_SelectEndpoint(ENDPOINT_CONTROLEP);
|
||||||
|
|
||||||
|
Endpoint_ClearSETUP();
|
||||||
Endpoint_Write_Control_Stream_LE(ReportData, ReportSize);
|
Endpoint_Write_Control_Stream_LE(ReportData, ReportSize);
|
||||||
Endpoint_ClearOUT();
|
Endpoint_ClearOUT();
|
||||||
}
|
}
|
||||||
@ -77,7 +78,7 @@ void HID_Device_ProcessControlRequest(USB_ClassInfo_HID_Device_t* const HIDInter
|
|||||||
|
|
||||||
Endpoint_ClearSETUP();
|
Endpoint_ClearSETUP();
|
||||||
Endpoint_Read_Control_Stream_LE(ReportData, ReportSize);
|
Endpoint_Read_Control_Stream_LE(ReportData, ReportSize);
|
||||||
Endpoint_ClearIN();
|
Endpoint_ClearIN();
|
||||||
|
|
||||||
CALLBACK_HID_Device_ProcessHIDReport(HIDInterfaceInfo, ReportID, ReportType, ReportData, ReportSize);
|
CALLBACK_HID_Device_ProcessHIDReport(HIDInterfaceInfo, ReportID, ReportType, ReportData, ReportSize);
|
||||||
}
|
}
|
||||||
|
@ -451,7 +451,7 @@
|
|||||||
static inline bool Endpoint_IsINReady(void) ATTR_WARN_UNUSED_RESULT ATTR_ALWAYS_INLINE;
|
static inline bool Endpoint_IsINReady(void) ATTR_WARN_UNUSED_RESULT ATTR_ALWAYS_INLINE;
|
||||||
static inline bool Endpoint_IsINReady(void)
|
static inline bool Endpoint_IsINReady(void)
|
||||||
{
|
{
|
||||||
return ((UEINTX & (1 << TXINI)) ? true : false);
|
return ((UEINTX & (1 << TXINI)) ? true : false);
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Determines if the selected OUT endpoint has received new packet.
|
/** Determines if the selected OUT endpoint has received new packet.
|
||||||
|
@ -58,6 +58,7 @@
|
|||||||
* - Fixed incorrect signature reported in the CDC class bootloader for the ATMEGA32U2
|
* - Fixed incorrect signature reported in the CDC class bootloader for the ATMEGA32U2
|
||||||
* - Fixed USB_Host_ClearPipeStall() incorrectly determining the endpoint direction from the currently selected pipe
|
* - Fixed USB_Host_ClearPipeStall() incorrectly determining the endpoint direction from the currently selected pipe
|
||||||
* - Fixed JTAG_DEBUG_POINT() and JTAG_DEBUG_BREAK() macros not compiling under pure C99 standards mode
|
* - Fixed JTAG_DEBUG_POINT() and JTAG_DEBUG_BREAK() macros not compiling under pure C99 standards mode
|
||||||
|
* - Fixed endpoint selection within the CALLBACK_HID_Device_CreateHIDReport() callback function causing broken GET REPORT requests
|
||||||
*
|
*
|
||||||
* \section Sec_ChangeLog100807 Version 100807
|
* \section Sec_ChangeLog100807 Version 100807
|
||||||
* <b>New:</b>
|
* <b>New:</b>
|
||||||
|
Loading…
Reference in New Issue
Block a user