*/\r
void ShowDiskReadError(char* CommandString, bool FailedAtSCSILayer, uint8_t ErrorCode)\r
{\r
- if (CommandFailed)\r
+ if (FailedAtSCSILayer)\r
{\r
/* Display the error code */\r
printf_P(PSTR(ESC_BG_RED "SCSI command error (%S).\r\n"), CommandString);\r