Fixed LowLevel PrinterHost demo not sending control requests to the attached printer with the correct printer interface wIndex value.
This commit is contained in:
		
							parent
							
								
									092f82e06f
								
							
						
					
					
						commit
						b7b8a9edfa
					
				
					 6 changed files with 18 additions and 12 deletions
				
			
		| 
						 | 
				
			
			@ -171,10 +171,10 @@ uint8_t PRNT_Host_SoftReset(USB_ClassInfo_PRNT_Host_t* const PRNTInterfaceInfo)
 | 
			
		|||
	USB_ControlRequest = (USB_Request_Header_t)
 | 
			
		||||
		{
 | 
			
		||||
			.bmRequestType = (REQDIR_HOSTTODEVICE | REQTYPE_CLASS | REQREC_INTERFACE),
 | 
			
		||||
			.bRequest     = REQ_SoftReset,
 | 
			
		||||
			.wValue       = 0,
 | 
			
		||||
			.wIndex       = PRNTInterfaceInfo->State.InterfaceNumber,
 | 
			
		||||
			.wLength      = 0,
 | 
			
		||||
			.bRequest      = REQ_SoftReset,
 | 
			
		||||
			.wValue        = 0,
 | 
			
		||||
			.wIndex        = PRNTInterfaceInfo->State.InterfaceNumber,
 | 
			
		||||
			.wLength       = 0,
 | 
			
		||||
		};
 | 
			
		||||
 | 
			
		||||
	Pipe_SelectPipe(PIPE_CONTROLPIPE);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue