From 641e7df64cd97dc6b3522803b998ec787df2a033 Mon Sep 17 00:00:00 2001 From: Pacjunk <92196260+Pacjunk@users.noreply.github.com> Date: Sun, 14 Nov 2021 20:41:10 +1100 Subject: [PATCH] Update scsihd.cpp Inquiry data length (#463) The inquiry command only returns up to the revision information, so don't return more data than this. This gives a total of 36 bytes returned, which is the required minimum in the spec. --- src/raspberrypi/devices/scsihd.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/raspberrypi/devices/scsihd.cpp b/src/raspberrypi/devices/scsihd.cpp index 31e1e3f0..e8e95500 100644 --- a/src/raspberrypi/devices/scsihd.cpp +++ b/src/raspberrypi/devices/scsihd.cpp @@ -145,7 +145,7 @@ int SCSIHD::Inquiry(const DWORD *cdb, BYTE *buf) buf[1] = IsRemovable() ? 0x80 : 0x00; buf[2] = 0x02; buf[3] = 0x02; - buf[4] = 122 + 3; // Value close to real HDD + buf[4] = 28 + 3; // Value close to real HDD // Padded vendor, product, revision memcpy(&buf[8], GetPaddedName().c_str(), 28);