mirror of
https://github.com/akuker/RASCSI.git
synced 2024-09-29 13:54:48 +00:00
Synchronized error handlign with sasidev_ctrl
This commit is contained in:
parent
e6f6de73eb
commit
71f5f7a2c9
@ -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;
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user