From 964e75e1917f2c2ef07b0678e1e93e55e1951af3 Mon Sep 17 00:00:00 2001 From: Proddy Date: Sat, 7 May 2022 17:50:10 +0200 Subject: [PATCH] minor change --- src/command.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/command.cpp b/src/command.cpp index d8c7b8406..1c3c54dc1 100644 --- a/src/command.cpp +++ b/src/command.cpp @@ -261,7 +261,7 @@ uint8_t Command::call(const uint8_t device_type, const char * cmd, const char * return CommandRet::NOT_ALLOWED; // command not allowed } - if (value == nullptr) { + if ((value == nullptr) || (strlen(value) == 0)) { if (EMSESP::system_.readonly_mode()) { LOG_INFO(F("[readonly] Calling command '%s/%s' (%s)"), dname.c_str(), cmd, read_flash_string(cf->description_).c_str()); } else {