From a4fb95daf6bdbbf79c5856dcacc3162461d13d98 Mon Sep 17 00:00:00 2001 From: akuker Date: Sat, 3 Oct 2020 16:39:25 -0500 Subject: [PATCH] #27 Fixed INQUIRY response for requests other than the Nuvolink driver --- src/raspberrypi/devices/scsi_nuvolink.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/raspberrypi/devices/scsi_nuvolink.cpp b/src/raspberrypi/devices/scsi_nuvolink.cpp index 04d2320..1201652 100644 --- a/src/raspberrypi/devices/scsi_nuvolink.cpp +++ b/src/raspberrypi/devices/scsi_nuvolink.cpp @@ -109,6 +109,9 @@ int FASTCALL SCSINuvolink::Inquiry( // field in cdb[4] response_size = (((DWORD)cdb[3] & 0x1) << 8) + cdb[4]; LOGWARN("size is %d (%08X)",(int)response_size, (WORD)response_size); + if((response_size != 96) && (response_size != 292)){ + response_size = 96; + } for(int i=0; i< 5; i++) {