Fixed error receiving PIMA events via the Still Image Host class driver.
This commit is contained in:
		
							parent
							
								
									44bc433fb0
								
							
						
					
					
						commit
						aded8373cc
					
				
					 3 changed files with 10 additions and 9 deletions
				
			
		| 
						 | 
				
			
			@ -119,18 +119,18 @@
 | 
			
		|||
		{
 | 
			
		||||
			PIMA_RESPONSE_OK                    = 1, /**< Response code indicating no error in the issued command. */
 | 
			
		||||
			PIMA_RESPONSE_GeneralError          = 2, /**< Response code indicating a general error while processing the
 | 
			
		||||
			                                             *  issued command.
 | 
			
		||||
			                                             */
 | 
			
		||||
			                                          *  issued command.
 | 
			
		||||
			                                          */
 | 
			
		||||
			PIMA_RESPONSE_SessionNotOpen        = 3, /**< Response code indicating that the sent command requires an open
 | 
			
		||||
			                                             *   session before being issued.
 | 
			
		||||
			                                             */
 | 
			
		||||
			                                          *   session before being issued.
 | 
			
		||||
			                                          */
 | 
			
		||||
			PIMA_RESPONSE_InvalidTransaction    = 4, /**< Response code indicating an invalid transaction occurred. */
 | 
			
		||||
			PIMA_RESPONSE_OperationNotSupported = 5, /**< Response code indicating that the issued command is not supported
 | 
			
		||||
			                                             *   by the attached device.
 | 
			
		||||
			                                             */
 | 
			
		||||
			                                          *   by the attached device.
 | 
			
		||||
			                                          */
 | 
			
		||||
			PIMA_RESPONSE_ParameterNotSupported = 6, /**< Response code indicating that one or more of the issued command's
 | 
			
		||||
			                                             *   parameters are not supported by the device.
 | 
			
		||||
			                                             */
 | 
			
		||||
			                                          *   parameters are not supported by the device.
 | 
			
		||||
			                                          */
 | 
			
		||||
		};
 | 
			
		||||
 | 
			
		||||
	/* Type Defines: */
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -302,7 +302,7 @@ bool SI_Host_IsEventReceived(USB_ClassInfo_SI_Host_t* const SIInterfaceInfo)
 | 
			
		|||
	Pipe_SelectPipe(SIInterfaceInfo->Config.EventsPipe.Address);
 | 
			
		||||
	Pipe_Unfreeze();
 | 
			
		||||
 | 
			
		||||
	if (Pipe_BytesInPipe())
 | 
			
		||||
	if (Pipe_IsINReceived())
 | 
			
		||||
	  IsEventReceived = true;
 | 
			
		||||
 | 
			
		||||
	Pipe_Freeze();
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue