Browse Source

Fix issue with incorrect LUN calc

Eric Helgeson 4 years ago
parent
commit
a223891a6d
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/BlueSCSI.cpp

+ 1 - 1
src/BlueSCSI.cpp

@@ -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) )