Synchronized error handlign with sasidev_ctrl

This commit is contained in:
Uwe Seimet 2021-07-05 09:17:46 +02:00
parent e6f6de73eb
commit 71f5f7a2c9
2 changed files with 6 additions and 2 deletions

View File

@ -380,7 +380,7 @@ void FASTCALL SCSIDEV::MsgOut()
// Common Error Handling
//
//---------------------------------------------------------------------------
void FASTCALL SCSIDEV::Error()
void FASTCALL SCSIDEV::Error(int sense_key, int asc)
{
ASSERT(this);
@ -405,6 +405,10 @@ void FASTCALL SCSIDEV::Error()
LOGTRACE( "%s Error (to status phase)", __PRETTY_FUNCTION__);
// Remember Sense Key and ASC for a subsequent REQUEST SENSE
ctrl.sense_key = sense_key;
ctrl.asc = asc;
// Set status and message(CHECK CONDITION)
ctrl.status = 0x02;
ctrl.message = 0x00;

View File

@ -74,7 +74,7 @@ private:
void FASTCALL Selection(); // Selection phase
void FASTCALL Execute(); // Execution phase
void FASTCALL MsgOut(); // Message out phase
void FASTCALL Error(); // Common erorr handling
void FASTCALL Error(int sense_key = 0, int asc = 0); // Common erorr handling
// commands
void FASTCALL CmdInquiry(); // INQUIRY command