Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
lufa
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Erik Strand
lufa
Commits
7c7778e3
Commit
7c7778e3
authored
Jul 11, 2011
by
Dean Camera
Browse files
Options
Downloads
Patches
Plain Diff
Minor style improvements to the incomplete AndroidAccessoryHost demo.
parent
d771b1ff
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
Demos/Host/Incomplete/AndroidAccessoryHost/AndroidAccessoryHost.c
+2
-2
2 additions, 2 deletions
...st/Incomplete/AndroidAccessoryHost/AndroidAccessoryHost.c
with
2 additions
and
2 deletions
Demos/Host/Incomplete/AndroidAccessoryHost/AndroidAccessoryHost.c
+
2
−
2
View file @
7c7778e3
...
@@ -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
==
Dev
ControlError
)
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
"
));
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment