Skip to content

Commit

Permalink
initiator: not all drives respond after stop is requested. we just ne…
Browse files Browse the repository at this point in the history
…ed to ask it to stop and move on.
  • Loading branch information
erichelgeson authored and androda committed Oct 12, 2023
1 parent ea8d3df commit 6743cb6
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/BlueSCSI_initiator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

0 comments on commit 6743cb6

Please sign in to comment.