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") {
|
||||
changed = true;
|
||||
jconfig[jprop_offlineMode] = jprop_offlineMode_default;
|
||||
}
|
||||
|
||||
/** Validate monitorDisplayCompensatedValues */
|
||||
if (JSON.typeof_(jconfig[jprop_monitorDisplayCompensatedValues]) !=
|
||||
"boolean") {
|
||||
changed = true;
|
||||
jconfig[jprop_monitorDisplayCompensatedValues] =
|
||||
jprop_monitorDisplayCompensatedValues_default;
|
||||
}
|
||||
|
Reference in New Issue
Block a user