forked from mfulz_github/qmk_firmware
		
	Code style fixes for the Device mode USB Audio Class driver to make it more in line with the style of the other library Device Class drivers.
This commit is contained in:
		
							parent
							
								
									2e6370a6b9
								
							
						
					
					
						commit
						a7dd984446
					
				@ -143,27 +143,33 @@ bool Audio_Device_ConfigureEndpoints(USB_ClassInfo_Audio_Device_t* const AudioIn
 | 
			
		||||
		uint16_t Size;
 | 
			
		||||
		uint8_t  Type;
 | 
			
		||||
		uint8_t  Direction;
 | 
			
		||||
		bool     DoubleBanked;
 | 
			
		||||
 | 
			
		||||
		if (EndpointNum == AudioInterfaceInfo->Config.DataINEndpointNumber)
 | 
			
		||||
		{
 | 
			
		||||
			Size         = AudioInterfaceInfo->Config.DataINEndpointSize;
 | 
			
		||||
			Direction    = ENDPOINT_DIR_IN;
 | 
			
		||||
			Type         = EP_TYPE_ISOCHRONOUS;
 | 
			
		||||
			DoubleBanked = true;
 | 
			
		||||
		}
 | 
			
		||||
		else if (EndpointNum == AudioInterfaceInfo->Config.DataOUTEndpointNumber)
 | 
			
		||||
		{
 | 
			
		||||
			Size         = AudioInterfaceInfo->Config.DataOUTEndpointSize;
 | 
			
		||||
			Direction    = ENDPOINT_DIR_OUT;
 | 
			
		||||
			Type         = EP_TYPE_ISOCHRONOUS;
 | 
			
		||||
			DoubleBanked = true;
 | 
			
		||||
		}
 | 
			
		||||
		else
 | 
			
		||||
		{
 | 
			
		||||
			continue;
 | 
			
		||||
		}
 | 
			
		||||
 | 
			
		||||
		if (!(Endpoint_ConfigureEndpoint(EndpointNum, Type, Direction, Size, ENDPOINT_BANK_DOUBLE)))
 | 
			
		||||
		if (!(Endpoint_ConfigureEndpoint(EndpointNum, Type, Direction, Size,
 | 
			
		||||
		                                 DoubleBanked ? ENDPOINT_BANK_DOUBLE : ENDPOINT_BANK_SINGLE)))
 | 
			
		||||
		{
 | 
			
		||||
			return false;
 | 
			
		||||
		}
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	return true;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user