diff options
author | Dean Camera <dean@fourwalledcubicle.com> | 2011-07-11 09:44:09 +0000 |
---|---|---|
committer | Dean Camera <dean@fourwalledcubicle.com> | 2011-07-11 09:44:09 +0000 |
commit | 7c7778e3cec4cf8df7ec235bbf78557d4abe17af (patch) | |
tree | fbf47e82cdfde8ffcb72bd0db9e319bd67db227b /Demos/Host/Incomplete | |
parent | d771b1ff8f721ed03fc044d232620a51cb6e473e (diff) | |
download | lufa-7c7778e3cec4cf8df7ec235bbf78557d4abe17af.tar.gz lufa-7c7778e3cec4cf8df7ec235bbf78557d4abe17af.tar.bz2 lufa-7c7778e3cec4cf8df7ec235bbf78557d4abe17af.zip |
Minor style improvements to the incomplete AndroidAccessoryHost demo.
Diffstat (limited to 'Demos/Host/Incomplete')
-rw-r--r-- | Demos/Host/Incomplete/AndroidAccessoryHost/AndroidAccessoryHost.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Demos/Host/Incomplete/AndroidAccessoryHost/AndroidAccessoryHost.c b/Demos/Host/Incomplete/AndroidAccessoryHost/AndroidAccessoryHost.c index 44772fe8a..723cf505a 100644 --- a/Demos/Host/Incomplete/AndroidAccessoryHost/AndroidAccessoryHost.c +++ b/Demos/Host/Incomplete/AndroidAccessoryHost/AndroidAccessoryHost.c @@ -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")); |