Skip to content
Snippets Groups Projects
Commit 7c7778e3 authored by Dean Camera's avatar Dean Camera
Browse files

Minor style improvements to the incomplete AndroidAccessoryHost demo.

parent d771b1ff
No related branches found
No related tags found
No related merge requests found
...@@ -152,9 +152,9 @@ void EVENT_USB_Host_DeviceEnumerationComplete(void) ...@@ -152,9 +152,9 @@ void EVENT_USB_Host_DeviceEnumerationComplete(void)
bool RequiresModeSwitch = (ErrorCode == NonAccessoryModeAndroidDevice); bool RequiresModeSwitch = (ErrorCode == NonAccessoryModeAndroidDevice);
/* Error out if the device is not an Android device or an error occurred */ /* 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")); puts_P(PSTR(ESC_FG_RED "Control Error (Get Device).\r\n"));
else else
puts_P(PSTR(ESC_FG_RED "Invalid Device.\r\n")); puts_P(PSTR(ESC_FG_RED "Invalid Device.\r\n"));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment