Browse 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 2 năm trước cách đây
mục cha
commit
1cd3af4f05
1 tập tin đã thay đổi với 6 bổ sung0 xóa
  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