Fix config save - use doSerializeConfig global flag
Changed serializeConfig() to doSerializeConfig = true This is the correct way to trigger config save in WLED
This commit is contained in:
parent
e8430ab8ac
commit
b2fd24b136
@ -176,7 +176,8 @@ class GPUFanControllerUsermod : public Usermod {
|
|||||||
if (doc.containsKey("curve-s4")) curveSpeed4 = constrain(doc["curve-s4"].as<int>(), 0, 100);
|
if (doc.containsKey("curve-s4")) curveSpeed4 = constrain(doc["curve-s4"].as<int>(), 0, 100);
|
||||||
if (doc.containsKey("curve-s5")) curveSpeed5 = constrain(doc["curve-s5"].as<int>(), 0, 100);
|
if (doc.containsKey("curve-s5")) curveSpeed5 = constrain(doc["curve-s5"].as<int>(), 0, 100);
|
||||||
|
|
||||||
serializeConfig();
|
// Trigger WLED config save using the global flag
|
||||||
|
doSerializeConfig = true;
|
||||||
updateFanSpeed();
|
updateFanSpeed();
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user