From cfd32c117d2596d99e95111167d86b5dc3d84012 Mon Sep 17 00:00:00 2001 From: David Shadoff <46657586+dshadoff@users.noreply.github.com> Date: Mon, 1 Aug 2022 04:26:16 -0400 Subject: [PATCH] Minor SCSI correction ( #670 ) (#671) Real hardware returns 4-byte block on read TOC, but System Card can deal with short responses; this makes the hardware function the same as original hardware --- support/pcecd/pcecdd.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/support/pcecd/pcecdd.cpp b/support/pcecd/pcecdd.cpp index b79e327..f6eddf9 100644 --- a/support/pcecd/pcecdd.cpp +++ b/support/pcecd/pcecdd.cpp @@ -516,11 +516,13 @@ void pcecdd_t::CommandExec() { switch (comm[1]) { case 0: default: - buf[0] = 2; + buf[0] = 4; buf[1] = 0 | 0x80; buf[2] = 1; buf[3] = BCD(this->toc.last); - len = 2 + 2; + buf[4] = 0; + buf[5] = 0; + len = 4 + 2; break; case 1: