소스 검색

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