Minor style improvements to the incomplete AndroidAccessoryHost demo.
This commit is contained in:
		
							parent
							
								
									d771b1ff8f
								
							
						
					
					
						commit
						7c7778e3ce
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -152,9 +152,9 @@ void EVENT_USB_Host_DeviceEnumerationComplete(void)
 | 
			
		|||
	bool RequiresModeSwitch = (ErrorCode == NonAccessoryModeAndroidDevice);
 | 
			
		||||
 | 
			
		||||
	/* Error out if the device is not an Android device or an error occurred */
 | 
			
		||||
	if ((ErrorCode != AccessoryModeAndroidDevice) && !(RequiresModeSwitch))
 | 
			
		||||
	if ((ErrorCode != AccessoryModeAndroidDevice) && (ErrorCode != NonAccessoryModeAndroidDevice))
 | 
			
		||||
	{
 | 
			
		||||
		if (ErrorCode == DevControlError)
 | 
			
		||||
		if (ErrorCode == ControlError)
 | 
			
		||||
		  puts_P(PSTR(ESC_FG_RED "Control Error (Get Device).\r\n"));
 | 
			
		||||
		else
 | 
			
		||||
		  puts_P(PSTR(ESC_FG_RED "Invalid Device.\r\n"));
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue