Backup RFP Infinity controller state before Resolume changes
Some checks failed
WLED CI / wled_build (push) Has been cancelled
Deploy Nightly / wled_build (push) Has been cancelled
Deploy Nightly / Deploy nightly (push) Has been cancelled

This commit is contained in:
jan
2026-05-14 12:31:13 +02:00
parent ebc4498d89
commit 4bc4e1257e
33 changed files with 3482 additions and 695 deletions

View File

@@ -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();