Fix issue with incorrect LUN calc

This commit is contained in:
Eric Helgeson 2021-04-10 12:14:20 -05:00
parent 6342dc58de
commit a223891a6d

View File

@ -1248,8 +1248,8 @@ void loop()
if(m_isBusReset) goto BusFree;
}
// LUN confirmation
m_lun = m_sts>>5;
m_sts = cmd[1]&0xe0; // Preset LUN in status byte
m_lun = m_sts>>5;
// HDD Image selection
m_img = (HDDIMG *)0; // None
if( (m_lun <= NUM_SCSILUN) )