瀏覽代碼

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 年之前
父節點
當前提交
1cd3af4f05
共有 1 個文件被更改,包括 6 次插入0 次删除
  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