Browse Source

Initiator mode: Avoid excessive TEST UNIT READY messages with targets that do not respond

Petteri Aimonen 3 năm trước cách đây
mục cha
commit
c66b32de61
1 tập tin đã thay đổi với 5 bổ sung0 xóa
  1. 5 0
      src/ZuluSCSI_initiator.cpp

+ 5 - 0
src/ZuluSCSI_initiator.cpp

@@ -396,6 +396,11 @@ bool scsiTestUnitReady(int target_id)
         {
             return true;
         }
+        else if (status == -1)
+        {
+            // No response to select
+            return false;
+        }
         else if (status == 2)
         {
             uint8_t sense_key;