Ver Fonte

RP2040 Initiator mode: Fix error recovery after watchdog aborts command.

Previously initiator mode would get stuck if drive didn't respond
to a command. Now it will be correctly aborted after 15 seconds and
retried.
Petteri Aimonen há 2 anos atrás
pai
commit
1cd3af4f05
1 ficheiros alterados com 6 adições e 0 exclusões
  1. 6 0
      src/BlueSCSI_initiator.cpp

+ 6 - 0
src/BlueSCSI_initiator.cpp

@@ -111,6 +111,12 @@ static void scsiInitiatorUpdateLed()
 // High level logic of the initiator mode
 void scsiInitiatorMainLoop()
 {
+    if (g_scsiHostPhyReset)
+    {
+        log("Executing BUS RESET after aborted command");
+        scsiHostPhyReset();
+    }
+
     if (!g_initiator_state.imaging)
     {
         // Scan for SCSI drives one at a time