mirror of
https://github.com/airgradienthq/arduino.git
synced 2025-07-20 20:22:08 +02:00
Ignore and return failed if configurationControl
is cloud
This commit is contained in:
@ -264,12 +264,14 @@ bool Configuration::parse(String data, bool isLocal) {
|
|||||||
jconfig[jprop_configurationControl]);
|
jconfig[jprop_configurationControl]);
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Check to return result if configurationControl is 'cloud' */
|
/** Return failed if new "configurationControl" new and old is "cloud" */
|
||||||
if (ctrl ==
|
if (ctrl == String(CONFIGURATION_CONTROL_NAME [ConfigurationControl::ConfigurationControlCloud])) {
|
||||||
String(CONFIGURATION_CONTROL_NAME
|
if(ctrl != lastCtrl) {
|
||||||
[ConfigurationControl::ConfigurationControlCloud])) {
|
return true;
|
||||||
failedMessage = String(msg);
|
} else {
|
||||||
return true;
|
failedMessage = String(msg);
|
||||||
|
return false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
failedMessage =
|
failedMessage =
|
||||||
|
Reference in New Issue
Block a user