mirror of
https://github.com/airgradienthq/arduino.git
synced 2025-07-28 07:57:18 +02:00
Ignore update locallyControlled
if configuration from server
This commit is contained in:
@ -267,12 +267,15 @@ bool LocalConfig::parse(String data, bool isLocal) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (JSON.typeof_(root["locallyControlled"]) == "boolean") {
|
/** This field only allow on local configure */
|
||||||
bool locallyControlled = root["locallyControlled"];
|
if (isLocal) {
|
||||||
if (locallyControlled != config.locallyControlled) {
|
if (JSON.typeof_(root["locallyControlled"]) == "boolean") {
|
||||||
changed = true;
|
bool locallyControlled = root["locallyControlled"];
|
||||||
config.locallyControlled = locallyControlled;
|
if (locallyControlled != config.locallyControlled) {
|
||||||
printLog("set locallyControlled: " + String(locallyControlled));
|
changed = true;
|
||||||
|
config.locallyControlled = locallyControlled;
|
||||||
|
printLog("set locallyControlled: " + String(locallyControlled));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user