mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-07 00:09:51 +03:00
fix string compare for value
This commit is contained in:
@@ -322,7 +322,7 @@ bool Command::get_attribute(JsonObject output, const char * cmd, const char * at
|
|||||||
|
|
||||||
// attribute isn't found
|
// attribute isn't found
|
||||||
// it could be a value command, but the value doesn't exist?
|
// it could be a value command, but the value doesn't exist?
|
||||||
if (strncmp(attribute, "value", 5) == 0) {
|
if (strcmp(attribute, "value") == 0) {
|
||||||
LOG_DEBUG("%s has no value set", cmd);
|
LOG_DEBUG("%s has no value set", cmd);
|
||||||
return false; // fail
|
return false; // fail
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user