mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2026-07-29 01:52:51 +00:00
donot fetch system_info for reset command
This commit is contained in:
@@ -1952,7 +1952,9 @@ bool System::get_value_info(JsonObject output, const char * cmd) {
|
|||||||
LOG_ERROR("empty system command");
|
LOG_ERROR("empty system command");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
if (!strcmp(cmd, "reset")) { // reset is a command, not an entity
|
||||||
|
return false;
|
||||||
|
}
|
||||||
// check for hardcoded "info"/"value"
|
// check for hardcoded "info"/"value"
|
||||||
if (!strcmp(cmd, F_(info)) || !strcmp(cmd, F_(values))) {
|
if (!strcmp(cmd, F_(info)) || !strcmp(cmd, F_(values))) {
|
||||||
return command_info("", 0, output);
|
return command_info("", 0, output);
|
||||||
|
|||||||
Reference in New Issue
Block a user