mirror of
https://github.com/wled/WLED.git
synced 2025-11-09 02:59:03 +00:00
Auto-create segments based on configured busses
This commit is contained in:
@@ -137,7 +137,9 @@ class MyExampleUsermod : public Usermod {
|
||||
void readFromConfig(JsonObject& root)
|
||||
{
|
||||
JsonObject top = root["top"];
|
||||
userVar0 = top["great"] | 42; //The value right of the pipe "|" is the default value in case your setting was not present in cfg.json (e.g. first boot)
|
||||
if (!top.isNull()) {
|
||||
userVar0 = top["great"] | 42; //The value right of the pipe "|" is the default value in case your setting was not present in cfg.json (e.g. first boot)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user