mirror of
https://github.com/zsa/qmk_firmware.git
synced 2026-05-04 23:12:57 +00:00
Fixed port state table corruption in the TCP layer of the RNDIS Ethernet device demos.
Fix additional warnings under GCC 4.6.
This commit is contained in:
@@ -348,7 +348,7 @@ void MassStorageHost_Task(void)
|
||||
* \param[in] CommandString ASCII string located in PROGMEM space indicating what operation failed
|
||||
* \param[in] ErrorCode Error code of the function which failed to complete successfully
|
||||
*/
|
||||
void ShowDiskReadError(char* CommandString,
|
||||
void ShowDiskReadError(const char* CommandString,
|
||||
const uint8_t ErrorCode)
|
||||
{
|
||||
if (ErrorCode == MASS_STORE_SCSI_COMMAND_FAILED)
|
||||
|
||||
@@ -84,7 +84,7 @@
|
||||
const uint8_t SubErrorCode);
|
||||
void EVENT_USB_Host_DeviceEnumerationComplete(void);
|
||||
|
||||
void ShowDiskReadError(char* CommandString,
|
||||
void ShowDiskReadError(const char* CommandString,
|
||||
const uint8_t ErrorCode);
|
||||
|
||||
#endif
|
||||
|
||||
@@ -353,7 +353,7 @@ void UnicodeToASCII(uint8_t* UnicodeString,
|
||||
void ShowCommandError(uint8_t ErrorCode,
|
||||
bool ResponseCodeError)
|
||||
{
|
||||
char* FailureType = ((ResponseCodeError) ? PSTR("Response Code != OK") : PSTR("Transaction Fail"));
|
||||
const char* FailureType = ((ResponseCodeError) ? PSTR("Response Code != OK") : PSTR("Transaction Fail"));
|
||||
|
||||
printf_P(PSTR(ESC_FG_RED "Command Error (%S).\r\n"
|
||||
" -- Error Code %d\r\n" ESC_FG_WHITE), FailureType, ErrorCode);
|
||||
|
||||
Reference in New Issue
Block a user