瀏覽代碼

Close tray but don't switch image on Inquiry (#230, #247)

Petteri Aimonen 2 年之前
父節點
當前提交
222f358ca1
共有 1 個文件被更改,包括 3 次插入3 次删除
  1. 3 3
      src/BlueSCSI_disk.cpp

+ 3 - 3
src/BlueSCSI_disk.cpp

@@ -1937,13 +1937,13 @@ void scsiDiskPoll()
             checkDiskGeometryDivisible(img);
         }
 
-        // Check for Inquiry command to reinsert CD-ROMs on boot
+        // Check for Inquiry command to close CD-ROM tray on boot
         if (command == 0x12)
         {
             image_config_t &img = *(image_config_t*)scsiDev.target->cfg;
             if (img.deviceType == S2S_CFG_OPTICAL && img.reinsert_on_inquiry)
             {
-                cdromReinsertFirstImage(img);
+                cdromCloseTray(img);
             }
         }
     }
@@ -1965,7 +1965,7 @@ void scsiDiskReset()
     g_scsi_prefetch.sector = 0;
 #endif
 
-    // Reinsert any ejected CD-ROMs
+    // Reinsert any ejected CD-ROMs on BUS RESET and restart from first image
     for (int i = 0; i < S2S_MAX_TARGETS; ++i)
     {
         image_config_t &img = g_DiskImages[i];