Reduce size of mode pages for SCSI1 hosts
[SCSI2SD.git] / software / scsi2sd-util / SCSI2SD_Bootloader.cc
index 4301e11..1e4ab90 100644 (file)
@@ -70,7 +70,11 @@ SCSI2SDHID_WriteData(unsigned char* data, int count)
        {
                buf[i+1] = data[i];
        }
-       int result = hid_write(SCSI2SDHID_handle, buf, count + 1);
+       int result = -1;
+       for (int retry = 0; retry < 3 && result < 0; ++retry)
+       {
+               result = hid_write(SCSI2SDHID_handle, buf, count + 1);
+       }
 
        if (result < 0)
        {
@@ -164,8 +168,8 @@ Bootloader::getHWInfo() const
                info.firmwareName = "SCSI2SD-V3.cyacd";
                break;
        case 0x3002:
-               info.desc = "3.5\" SCSI2SD (yellow) or 2.5\" SCSI2SD for Apple Powerbook";
-               info.version = "V4.1/V4.2";
+               info.desc = "3.5\" SCSI2SD (yellow/red) or 2.5\" SCSI2SD for Apple Powerbook";
+               info.version = "V4.1/V4.2/V5.0";
                info.firmwareName = "SCSI2SD-V4.cyacd";
                break;
        }