Skip to content

Commit

Permalink
Close tray but don't switch image on Inquiry (#230, #247)
Browse files Browse the repository at this point in the history
  • Loading branch information
PetteriAimonen authored and erichelgeson committed Jun 20, 2023
1 parent db5640f commit 222f358
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/BlueSCSI_disk.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
}
Expand All @@ -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];
Expand Down

0 comments on commit 222f358

Please sign in to comment.