mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-08 16:59:50 +03:00
clear command output if cf found
This commit is contained in:
@@ -353,6 +353,8 @@ uint8_t Command::call(const uint8_t device_type, const char * cmd, const char *
|
|||||||
return CommandRet::ERROR;
|
return CommandRet::ERROR;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
output.clear(); // we have a command function, clear messages from device_value_info
|
||||||
|
|
||||||
// before calling the command, check permissions and abort if not authorized
|
// before calling the command, check permissions and abort if not authorized
|
||||||
if (cf->has_flags(CommandFlag::ADMIN_ONLY) && !is_admin) {
|
if (cf->has_flags(CommandFlag::ADMIN_ONLY) && !is_admin) {
|
||||||
LOG_WARNING("Command failed: authentication failed");
|
LOG_WARNING("Command failed: authentication failed");
|
||||||
|
|||||||
Reference in New Issue
Block a user