nscsi_bus: minor fix (nw) (#3621)

Only the lower 3 bits of the identify message contain the LUN.
This commit is contained in:
Patrick Mackinlay 2018-05-29 13:12:20 +07:00 committed by Olivier Galibert
parent 4e79539b94
commit 8f267237e1

View File

@ -611,7 +611,8 @@ void nscsi_full_device::scsi_message()
int nscsi_full_device::get_lun(int def)
{
if(scsi_identify & 0x80)
return scsi_identify & 0x7f;
// lower 3 bits contain LUNTRN
return scsi_identify & 0x07;
return def;
}