Fixed Host mode HID class driver not sending the correct report type when HID_Host_SendReportByID() was called and the HID_HOST_BOOT_PROTOCOL_ONLY compile time option is set.
This commit is contained in:
		
							parent
							
								
									27f0ba6fc3
								
							
						
					
					
						commit
						e652cfac67
					
				
					 2 changed files with 3 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -249,7 +249,7 @@ uint8_t HID_Host_SendReportByID(USB_ClassInfo_HID_Host_t* const HIDInterfaceInfo
 | 
			
		|||
#if !defined(HID_HOST_BOOT_PROTOCOL_ONLY)
 | 
			
		||||
			.wValue        = ((REPORT_ITEM_TYPE_Out + 1) << 8) | ReportID,
 | 
			
		||||
#else
 | 
			
		||||
			.wValue        = 0,
 | 
			
		||||
			.wValue        = ((REPORT_ITEM_TYPE_Out + 1) << 8),
 | 
			
		||||
#endif
 | 
			
		||||
			.wIndex        = HIDInterfaceInfo->State.InterfaceNumber,
 | 
			
		||||
			.wLength       = ReportSize,
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue