Stopped P0 version of 1581 outputing a signal on the sound GPIO as the sound is disabled on the Pi 0.

This commit is contained in:
Stephen White 2019-12-30 18:58:32 +11:00
parent 2c4629bca6
commit e6ab3c6eb7
1 changed files with 2 additions and 0 deletions

View File

@ -471,8 +471,10 @@ public:
if (OutputLED) set |= 1 << PIGPIO_OUT_LED; if (OutputLED) set |= 1 << PIGPIO_OUT_LED;
else clear |= 1 << PIGPIO_OUT_LED; else clear |= 1 << PIGPIO_OUT_LED;
#if not defined(EXPERIMENTALZERO)
if (OutputSound) set |= 1 << PIGPIO_OUT_SOUND; if (OutputSound) set |= 1 << PIGPIO_OUT_SOUND;
else clear |= 1 << PIGPIO_OUT_SOUND; else clear |= 1 << PIGPIO_OUT_SOUND;
#endif
write32(ARM_GPIO_GPSET0, set); write32(ARM_GPIO_GPSET0, set);
write32(ARM_GPIO_GPCLR0, clear); write32(ARM_GPIO_GPCLR0, clear);