]> localhost Git - SCSI2SD-V6.git/commitdiff
scsi2sd-util6 fix for detecting boards under Windows without an SD card inserted
authorMichael McMaster <michael@codesrc.com>
Mon, 3 May 2021 10:11:50 +0000 (20:11 +1000)
committerMichael McMaster <michael@codesrc.com>
Mon, 3 May 2021 10:11:50 +0000 (20:11 +1000)
CHANGELOG
src/scsi2sd-util6/SCSI2SD_HID.cc

index 8ed88e9e82dbb7c59bf6973a9dc1ee36f3c552a2..be422879515ce6a18214d7fd3775986249714be4 100644 (file)
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -1,3 +1,12 @@
+20210503        6.4.2
+    - Bug fix for errors while writing data
+    - Fix for scsi2sd-util6 under Windows which may fail to detect a board without a SD card inserted.
+
+20210426               6.4.1
+    - 2021 hardware support release.
+    - scsi2sd-util6 stability improvements (contributed by Jonathan Wakely.
+
+
 20201012               6.3.2
        - Increase limit of READ/WRITE BUFFER command for improved compatibility
        SGI Iris hosts
index e5b8ca3471b2ac4cc7fbef8649b7458e770c028e..163cbed60af2456b8ed789172088bdac3c56be82 100644 (file)
@@ -301,6 +301,10 @@ HID::sendHIDPacket(
                for (int retry = 0; retry < 10 && result <= 0; ++retry)
                {
                        result = hid_write(myConfigHandle, reportBuf, sizeof(reportBuf));
+            if (result <= 0)
+            {
+                wxMilliSleep(32);
+            }
                }
 
                if (result <= 0)
@@ -322,6 +326,10 @@ HID::sendHIDPacket(
                readHID(hidBuf, sizeof(hidBuf)); // Will block
                hidPacket_recv(hidBuf, HID_PACKET_SIZE);
                resp = hidPacket_getPacket(&respLen);
+        if (!resp)
+        {
+            wxMilliSleep(32);
+        }
        }
 
        if (!resp)