diff options
author | Dean Camera <dean@fourwalledcubicle.com> | 2011-11-23 06:46:19 +0000 |
---|---|---|
committer | Dean Camera <dean@fourwalledcubicle.com> | 2011-11-23 06:46:19 +0000 |
commit | e9802253e28381fd2373fc9cc7120716a98e3823 (patch) | |
tree | 10a6d4935fdc8567e0dd500862797be1876adcf0 | |
parent | 4f223302b1db0b010b714deae0e5eb4175437b59 (diff) | |
download | lufa-e9802253e28381fd2373fc9cc7120716a98e3823.tar.gz lufa-e9802253e28381fd2373fc9cc7120716a98e3823.tar.bz2 lufa-e9802253e28381fd2373fc9cc7120716a98e3823.zip |
Add const-correctness to the Android_SendString() function of the Android Accessory Host demo.
-rw-r--r-- | Demos/Host/Incomplete/AndroidAccessoryHost/Lib/AndroidAccessoryCommands.c | 4 | ||||
-rw-r--r-- | Demos/Host/Incomplete/AndroidAccessoryHost/Lib/AndroidAccessoryCommands.h | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/Demos/Host/Incomplete/AndroidAccessoryHost/Lib/AndroidAccessoryCommands.c b/Demos/Host/Incomplete/AndroidAccessoryHost/Lib/AndroidAccessoryCommands.c index 3a1b604ff..3931716ab 100644 --- a/Demos/Host/Incomplete/AndroidAccessoryHost/Lib/AndroidAccessoryCommands.c +++ b/Demos/Host/Incomplete/AndroidAccessoryHost/Lib/AndroidAccessoryCommands.c @@ -52,7 +52,7 @@ uint8_t Android_GetAccessoryProtocol(uint16_t* const Protocol) } uint8_t Android_SendString(const uint8_t StringIndex, - char* String) + const 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) diff --git a/Demos/Host/Incomplete/AndroidAccessoryHost/Lib/AndroidAccessoryCommands.h b/Demos/Host/Incomplete/AndroidAccessoryHost/Lib/AndroidAccessoryCommands.h index 68fbb47b1..594370526 100644 --- a/Demos/Host/Incomplete/AndroidAccessoryHost/Lib/AndroidAccessoryCommands.h +++ b/Demos/Host/Incomplete/AndroidAccessoryHost/Lib/AndroidAccessoryCommands.h @@ -68,7 +68,7 @@ /* Function Prototypes: */ uint8_t Android_GetAccessoryProtocol(uint16_t* const Protocol); uint8_t Android_SendString(const uint8_t StringIndex, - char* String); + const char* const String); uint8_t Android_StartAccessoryMode(void); #endif |