mirror of
https://github.com/airgradienthq/arduino.git
synced 2025-07-20 12:12:08 +02:00
fix load configuration value changed
This commit is contained in:
@ -1106,12 +1106,14 @@ void Configuration::toConfig(const char *buf) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (JSON.typeof_(jconfig[jprop_offlineMode]) != "boolean") {
|
if (JSON.typeof_(jconfig[jprop_offlineMode]) != "boolean") {
|
||||||
|
changed = true;
|
||||||
jconfig[jprop_offlineMode] = jprop_offlineMode_default;
|
jconfig[jprop_offlineMode] = jprop_offlineMode_default;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Validate monitorDisplayCompensatedValues */
|
/** Validate monitorDisplayCompensatedValues */
|
||||||
if (JSON.typeof_(jconfig[jprop_monitorDisplayCompensatedValues]) !=
|
if (JSON.typeof_(jconfig[jprop_monitorDisplayCompensatedValues]) !=
|
||||||
"boolean") {
|
"boolean") {
|
||||||
|
changed = true;
|
||||||
jconfig[jprop_monitorDisplayCompensatedValues] =
|
jconfig[jprop_monitorDisplayCompensatedValues] =
|
||||||
jprop_monitorDisplayCompensatedValues_default;
|
jprop_monitorDisplayCompensatedValues_default;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user