Ignore and return failed if configurationControl is cloud

This commit is contained in:
Phat Nguyen
2024-08-21 12:54:06 +07:00
parent 171821cfcf
commit 88e3d0bd3f

View File

@ -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 =