fix string compare for value

This commit is contained in:
proddy
2025-10-06 22:17:23 +02:00
parent 8b5cc82df9
commit 7402776248

View File

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