From 6743cb6e3deef3794fcd2fcf01ff4e82f47be3b5 Mon Sep 17 00:00:00 2001 From: Eric Helgeson Date: Thu, 5 Oct 2023 15:00:59 -0500 Subject: [PATCH] initiator: not all drives respond after stop is requested. we just need to ask it to stop and move on. --- src/BlueSCSI_initiator.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/BlueSCSI_initiator.cpp b/src/BlueSCSI_initiator.cpp index 282e006f..80d5ff7d 100644 --- a/src/BlueSCSI_initiator.cpp +++ b/src/BlueSCSI_initiator.cpp @@ -451,10 +451,14 @@ bool scsiRequestSense(int target_id, uint8_t *sense_key) // Execute UNIT START STOP command to load/unload media bool scsiStartStopUnit(int target_id, bool start) { - uint8_t command[6] = {0x1B, 0, 0, 0, 0, 0}; + uint8_t command[6] = {0x1B, 0x1, 0, 0, 0, 0}; uint8_t response[4] = {0}; - if (start) command[4] |= 1; + if (start) + { + command[4] |= 1; // Start + command[1] = 0; // Immediate + } int status = scsiInitiatorRunCommand(target_id, command, sizeof(command),