diff --git a/src/channeloutput/HTTPVirtualDisplay.cpp b/src/channeloutput/HTTPVirtualDisplay.cpp index d48710aa7..a2d44c283 100644 --- a/src/channeloutput/HTTPVirtualDisplay.cpp +++ b/src/channeloutput/HTTPVirtualDisplay.cpp @@ -22,6 +22,7 @@ #include "../fppversion.h" #include "../log.h" +#include "../common.h" #include "HTTPVirtualDisplay.h" diff --git a/src/non-gpl/BBShiftString/BBShiftString.cpp b/src/non-gpl/BBShiftString/BBShiftString.cpp index a02ac19f6..d4ac00b32 100644 --- a/src/non-gpl/BBShiftString/BBShiftString.cpp +++ b/src/non-gpl/BBShiftString/BBShiftString.cpp @@ -312,6 +312,12 @@ int BBShiftStringOutput::Init(Json::Value config) { m_pru1.channelData = (uint8_t*)calloc(1, m_pru1.frameSize); m_pru1.formattedData = (uint8_t*)calloc(1, m_pru1.frameSize); + bool supportsV5Listeners = root.isMember("falconV5ListenerConfig"); + if (supportsV5Listeners) { + // if the cape supports v5 listeners, the enable pin needs to be + // configured or data won't be sent on port1 of each receiver + PinCapabilities::getPinByName("P8-27").configPin("pruout"); + } if (hasV5SR) { setupFalconV5Support(root, m_pru1.lastData + offset); } @@ -842,7 +848,6 @@ void BBShiftStringOutput::setupFalconV5Support(const Json::Value& root, uint8_t* falconV5Support = new FalconV5Support(); bool supportsV5Listeners = root.isMember("falconV5ListenerConfig"); if (supportsV5Listeners) { - PinCapabilities::getPinByName("P8-27").configPin("pruout"); falconV5Support->addListeners(root["falconV5ListenerConfig"]); }