mirror of
				https://github.com/mfulz/qmk_firmware.git
				synced 2025-10-31 13:22:31 +01:00 
			
		
		
		
	Fixed Device mode HID Class driver always sending IN reports, even when no data is to be reported.
This commit is contained in:
		
							parent
							
								
									8ea5c631c8
								
							
						
					
					
						commit
						665fe11f12
					
				| @ -168,13 +168,13 @@ void HID_Device_USBTask(USB_ClassInfo_HID_Device_t* const HIDInterfaceInfo) | |||||||
| 			HIDInterfaceInfo->State.IdleMSRemaining = HIDInterfaceInfo->State.IdleCount; | 			HIDInterfaceInfo->State.IdleMSRemaining = HIDInterfaceInfo->State.IdleCount; | ||||||
| 
 | 
 | ||||||
| 			if (ReportID) | 			if (ReportID) | ||||||
| 			  Endpoint_Write_Stream_LE(&ReportID, sizeof(ReportID), NO_STREAM_CALLBACK); | 			  Endpoint_Write_Byte(ReportID); | ||||||
| 
 | 
 | ||||||
| 			Endpoint_Write_Stream_LE(ReportINData, ReportINSize, NO_STREAM_CALLBACK); | 			Endpoint_Write_Stream_LE(ReportINData, ReportINSize, NO_STREAM_CALLBACK); | ||||||
| 		} |  | ||||||
| 			 | 			 | ||||||
| 			Endpoint_ClearIN(); | 			Endpoint_ClearIN(); | ||||||
| 		} | 		} | ||||||
|  | 	} | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| void HID_Device_MillisecondElapsed(USB_ClassInfo_HID_Device_t* HIDInterfaceInfo) | void HID_Device_MillisecondElapsed(USB_ClassInfo_HID_Device_t* HIDInterfaceInfo) | ||||||
|  | |||||||
| @ -39,6 +39,7 @@ | |||||||
|   *  - Fixed invalid data being returned when a GetStatus request is issued in Device mode with an unhandled data recipient |   *  - Fixed invalid data being returned when a GetStatus request is issued in Device mode with an unhandled data recipient | ||||||
|   *  - Added hardware USART receive interrupt and software buffering to the Benito project to ensure received data is not |   *  - Added hardware USART receive interrupt and software buffering to the Benito project to ensure received data is not | ||||||
|   *    missed or corrupted |   *    missed or corrupted | ||||||
|  |   *  - Fixed Device mode HID Class driver always sending IN packets, even when nothing to report | ||||||
|   * |   * | ||||||
|   * |   * | ||||||
|   *  \section Sec_ChangeLog090810 Version 090810 |   *  \section Sec_ChangeLog090810 Version 090810 | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Dean Camera
						Dean Camera