Updated SASI LUN handling

This commit is contained in:
Uwe Seimet 2022-03-06 12:51:41 +01:00
parent ae458c8988
commit dcb1cc079e

View File

@ -647,11 +647,8 @@ void SASIDEV::Error(sense_key sense_key, asc asc, status status)
return;
}
// Logical Unit
DWORD lun = GetEffectiveLun();
// Set status and message
ctrl.status = (lun << 5) | status;
ctrl.status = (GetEffectiveLun() << 5) | status;
// status phase
Status();
@ -1085,6 +1082,6 @@ void SASIDEV::FlushUnit()
int SASIDEV::GetEffectiveLun() const
{
return (ctrl.cmd[1] >> 5) & 0x01;
return (ctrl.cmd[1] >> 5) & 0x07;
}