瀏覽代碼

Merge pull request #195 from ZuluSCSI/dev_initiator_watchdog_recovery

RP2040 Initiator mode: Fix error recovery after watchdog aborts command.
Alex Perez 2 年之前
父節點
當前提交
136685ad4c
共有 1 個文件被更改,包括 6 次插入0 次删除
  1. 6 0
      src/ZuluSCSI_initiator.cpp

+ 6 - 0
src/ZuluSCSI_initiator.cpp

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