From e6ab3c6eb7333aa3a5e4c95297d7ed7af805ad05 Mon Sep 17 00:00:00 2001 From: Stephen White Date: Mon, 30 Dec 2019 18:58:32 +1100 Subject: [PATCH] Stopped P0 version of 1581 outputing a signal on the sound GPIO as the sound is disabled on the Pi 0. --- src/iec_bus.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/iec_bus.h b/src/iec_bus.h index ce42864..b549b0a 100644 --- a/src/iec_bus.h +++ b/src/iec_bus.h @@ -471,8 +471,10 @@ public: if (OutputLED) set |= 1 << PIGPIO_OUT_LED; else clear |= 1 << PIGPIO_OUT_LED; +#if not defined(EXPERIMENTALZERO) if (OutputSound) set |= 1 << PIGPIO_OUT_SOUND; else clear |= 1 << PIGPIO_OUT_SOUND; +#endif write32(ARM_GPIO_GPSET0, set); write32(ARM_GPIO_GPCLR0, clear);