From: Michael McMaster Date: Mon, 3 May 2021 10:11:50 +0000 (+1000) Subject: scsi2sd-util6 fix for detecting boards under Windows without an SD card inserted X-Git-Tag: v6.4.2~1 X-Git-Url: http://git.codesrc.com/gitweb.cgi?a=commitdiff_plain;h=8d61a8f2ea27a3ded67bab0adfd83b2df67dc3fd;p=SCSI2SD-V6.git scsi2sd-util6 fix for detecting boards under Windows without an SD card inserted --- diff --git a/CHANGELOG b/CHANGELOG index 8ed88e9e..be422879 100644 --- 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 diff --git a/src/scsi2sd-util6/SCSI2SD_HID.cc b/src/scsi2sd-util6/SCSI2SD_HID.cc index e5b8ca34..163cbed6 100644 --- a/src/scsi2sd-util6/SCSI2SD_HID.cc +++ b/src/scsi2sd-util6/SCSI2SD_HID.cc @@ -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)