Add const-correctness to the Android_SendString() function of the Android Accessory Host demo.
This commit is contained in:
		
							parent
							
								
									4f223302b1
								
							
						
					
					
						commit
						e9802253e2
					
				
					 2 changed files with 3 additions and 3 deletions
				
			
		| 
						 | 
				
			
			@ -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)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -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
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue