From da3d0ea49437bd76905d8ec528be467ac5d17ea3 Mon Sep 17 00:00:00 2001 From: akuker Date: Sat, 18 Jul 2020 18:00:17 -0500 Subject: [PATCH] Ignore non-SCSI pins --- src/raspberrypi/gpiobus.h | 20 ++++++++++++++++++++ src/raspberrypi/scsishark.cpp | 3 ++- 2 files changed, 22 insertions(+), 1 deletion(-) diff --git a/src/raspberrypi/gpiobus.h b/src/raspberrypi/gpiobus.h index 3792af4..3e1b844 100644 --- a/src/raspberrypi/gpiobus.h +++ b/src/raspberrypi/gpiobus.h @@ -140,6 +140,26 @@ #define PIN_IO 25 // IO #define PIN_BSY 26 // BSY #define PIN_SEL 27 // SEL + +#define ALL_SCSI_PINS \ + ((1<SetACT(FALSE); spdlog::trace("Going into running mode {}", 1); + printf("ALL_SCSI_PINS %08X\n",ALL_SCSI_PINS); // Main Loop while (running) { // Work initialization - this_sample = bus->Aquire(); + this_sample = (bus->Aquire() & ALL_SCSI_PINS); if(this_sample != prev_sample) {