/* Indicates that a communication error has occurred with the attached Mass Storage Device, printing error codes to the serial port and waiting until the device is removed before continuing. */
void ShowDiskReadError(const char *CommandString, const uint8_t ErrorCode)
/* Indicates that a communication error has occurred with the attached Mass Storage Device, printing error codes to the serial port and waiting until the device is removed before continuing. */
void ShowDiskReadError(const char *CommandString, const uint8_t ErrorCode)
{
	if (ErrorCode == MASS_STORE_SCSI_COMMAND_FAILED)
	{
		printf_P(PSTR(ESC_FG_RED "SCSI command error (%S).\r\n"), CommandString);
	}
	else
	{
		printf_P(PSTR(ESC_FG_RED "Command error (%S).\r\n"), CommandString);
		printf_P(PSTR("  -- Error Code: %d" ESC_FG_WHITE), ErrorCode);
	}
	Pipe_Freeze();
	LEDs_SetAllLEDs(LEDMASK_USB_ERROR);
}