Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Erik Strand
lufa
Commits
e9802253
Commit
e9802253
authored
Nov 23, 2011
by
Dean Camera
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add const-correctness to the Android_SendString() function of the Android Accessory Host demo.
parent
4f223302
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
Demos/Host/Incomplete/AndroidAccessoryHost/Lib/AndroidAccessoryCommands.c
...plete/AndroidAccessoryHost/Lib/AndroidAccessoryCommands.c
+2
-2
Demos/Host/Incomplete/AndroidAccessoryHost/Lib/AndroidAccessoryCommands.h
...plete/AndroidAccessoryHost/Lib/AndroidAccessoryCommands.h
+1
-1
No files found.
Demos/Host/Incomplete/AndroidAccessoryHost/Lib/AndroidAccessoryCommands.c
View file @
e9802253
...
...
@@ -52,7 +52,7 @@ uint8_t Android_GetAccessoryProtocol(uint16_t* const Protocol)
}
uint8_t
Android_SendString
(
const
uint8_t
StringIndex
,
c
har
*
String
)
c
onst
char
*
const
String
)
{
USB_ControlRequest
=
(
USB_Request_Header_t
)
{
...
...
@@ -64,7 +64,7 @@ uint8_t Android_SendString(const uint8_t StringIndex,
};
Pipe_SelectPipe
(
PIPE_CONTROLPIPE
);
return
USB_Host_SendControlRequest
(
String
);
return
USB_Host_SendControlRequest
(
(
char
*
)
String
);
}
uint8_t
Android_StartAccessoryMode
(
void
)
...
...
Demos/Host/Incomplete/AndroidAccessoryHost/Lib/AndroidAccessoryCommands.h
View file @
e9802253
...
...
@@ -68,7 +68,7 @@
/* Function Prototypes: */
uint8_t
Android_GetAccessoryProtocol
(
uint16_t
*
const
Protocol
);
uint8_t
Android_SendString
(
const
uint8_t
StringIndex
,
c
har
*
String
);
c
onst
char
*
const
String
);
uint8_t
Android_StartAccessoryMode
(
void
);
#endif
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment