Fixed MIDI device class driver MIDI_Device_ReceiveEventPacket() for the XMEGA architecture.
This commit is contained in:
		
							parent
							
								
									16c4f1d43c
								
							
						
					
					
						commit
						6eba84bf4b
					
				
					 2 changed files with 11 additions and 3 deletions
				
			
		| 
						 | 
				
			
			@ -60,7 +60,7 @@ void MIDI_Device_USBTask(USB_ClassInfo_MIDI_Device_t* const MIDIInterfaceInfo)
 | 
			
		|||
 | 
			
		||||
	#if !defined(NO_CLASS_DRIVER_AUTOFLUSH)
 | 
			
		||||
	Endpoint_SelectEndpoint(MIDIInterfaceInfo->Config.DataINEndpoint.Address);
 | 
			
		||||
	
 | 
			
		||||
 | 
			
		||||
	if (Endpoint_IsINReady())
 | 
			
		||||
	  MIDI_Device_Flush(MIDIInterfaceInfo);
 | 
			
		||||
	#endif
 | 
			
		||||
| 
						 | 
				
			
			@ -113,6 +113,9 @@ bool MIDI_Device_ReceiveEventPacket(USB_ClassInfo_MIDI_Device_t* const MIDIInter
 | 
			
		|||
 | 
			
		||||
	Endpoint_SelectEndpoint(MIDIInterfaceInfo->Config.DataOUTEndpoint.Address);
 | 
			
		||||
 | 
			
		||||
	if (!(Endpoint_IsOUTReceived()))
 | 
			
		||||
		return false;
 | 
			
		||||
 | 
			
		||||
	if (!(Endpoint_IsReadWriteAllowed()))
 | 
			
		||||
	  return false;
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue