Parcourir la source

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 il y a 2 ans
Parent
commit
1cd3af4f05
1 fichiers modifiés avec 6 ajouts et 0 suppressions
  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