mirror of
https://github.com/airgradienthq/arduino.git
synced 2025-07-21 04:32:09 +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]);
|
||||
}
|
||||
|
||||
/** Check to return result if configurationControl is 'cloud' */
|
||||
if (ctrl ==
|
||||
String(CONFIGURATION_CONTROL_NAME
|
||||
[ConfigurationControl::ConfigurationControlCloud])) {
|
||||
failedMessage = String(msg);
|
||||
return true;
|
||||
/** Return failed if new "configurationControl" new and old is "cloud" */
|
||||
if (ctrl == String(CONFIGURATION_CONTROL_NAME [ConfigurationControl::ConfigurationControlCloud])) {
|
||||
if(ctrl != lastCtrl) {
|
||||
return true;
|
||||
} else {
|
||||
failedMessage = String(msg);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
} else {
|
||||
failedMessage =
|
||||
|
Reference in New Issue
Block a user