Backup RFP Infinity controller state before Resolume changes
This commit is contained in:
@@ -222,6 +222,9 @@ void WLED::loop()
|
||||
#endif
|
||||
#ifdef WLED_ENABLE_DMX_INPUT
|
||||
dmxInput.update();
|
||||
#endif
|
||||
#ifdef WLED_ENABLE_INFINITY_CONTROLLER
|
||||
infinityLoop();
|
||||
#endif
|
||||
userLoop();
|
||||
|
||||
@@ -1014,6 +1017,9 @@ void WLED::setup()
|
||||
#ifdef WLED_ENABLE_DMX_INPUT
|
||||
dmxInput.init(dmxInputReceivePin, dmxInputTransmitPin, dmxInputEnablePin, dmxInputPort);
|
||||
#endif
|
||||
#ifdef WLED_ENABLE_INFINITY_CONTROLLER
|
||||
infinityInit();
|
||||
#endif
|
||||
|
||||
#ifdef WLED_ENABLE_ADALIGHT
|
||||
if (Serial && (Serial.available() > 0) && (Serial.peek() == 'I')) handleImprovPacket();
|
||||
@@ -1132,9 +1138,18 @@ void WLED::beginStrip()
|
||||
strip.fill(BLACK); // WLEDMM avoids random colors at power-on
|
||||
strip.finalizeInit(); // busses created during deserializeConfig()
|
||||
strip.makeAutoSegments();
|
||||
#ifdef WLED_ENABLE_INFINITY_CONTROLLER
|
||||
infinityPostStripInit();
|
||||
#endif
|
||||
strip.setBrightness(0, true); // WLEDMM directly apply BLACK (no transition time)
|
||||
strip.setShowCallback(handleOverlayDraw);
|
||||
|
||||
#ifdef WLEDMM_FORCE_ON_AT_BOOT
|
||||
// WLEDMM: board-specific safety net for installs that must always recover to ON after power loss.
|
||||
turnOnAtBoot = true;
|
||||
bootPreset = 0;
|
||||
#endif
|
||||
|
||||
if (turnOnAtBoot) {
|
||||
if (briS > 0) bri = briS;
|
||||
else if (bri == 0) bri = 128;
|
||||
@@ -1192,6 +1207,9 @@ void WLED::initAP(bool resetAP)
|
||||
}
|
||||
e131.begin(false, e131Port, e131Universe, E131_MAX_UNIVERSE_COUNT);
|
||||
ddp.begin(false, DDP_DEFAULT_PORT);
|
||||
#ifdef WLED_ENABLE_INFINITY_CONTROLLER
|
||||
infinityNetworkBegin();
|
||||
#endif
|
||||
|
||||
dnsServer.setErrorReplyCode(DNSReplyCode::NoError);
|
||||
dnsServer.start(53, "*", WiFi.softAPIP());
|
||||
@@ -1461,6 +1479,9 @@ void WLED::initInterfaces()
|
||||
|
||||
e131.begin(e131Multicast, e131Port, e131Universe, E131_MAX_UNIVERSE_COUNT);
|
||||
ddp.begin(false, DDP_DEFAULT_PORT);
|
||||
#ifdef WLED_ENABLE_INFINITY_CONTROLLER
|
||||
infinityNetworkBegin();
|
||||
#endif
|
||||
reconnectHue();
|
||||
#ifndef WLED_DISABLE_MQTT
|
||||
initMqtt();
|
||||
|
||||
Reference in New Issue
Block a user