mirror of
https://github.com/holub/mame
synced 2025-04-22 08:22:15 +03:00
nscsi_bus: minor fix (nw) (#3621)
Only the lower 3 bits of the identify message contain the LUN.
This commit is contained in:
parent
4e79539b94
commit
8f267237e1
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user