From b76b6be3d17ef89e60042da5edd65c1dc761c6ea Mon Sep 17 00:00:00 2001 From: proddy Date: Tue, 2 Nov 2021 10:50:29 +0100 Subject: [PATCH] logic cleanup --- src/command.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/command.cpp b/src/command.cpp index 05513a3fa..1db2aff02 100644 --- a/src/command.cpp +++ b/src/command.cpp @@ -231,7 +231,7 @@ uint8_t Command::call(const uint8_t device_type, const char * cmd, const char * // check if its a call to and end-point to a device, i.e. has no value // except for system commands as this is a special device without any queryable entities (device values) if ((device_type != EMSdevice::DeviceType::SYSTEM) && (!value || !strlen(value))) { - if (!cf || (cf && !cf->cmdfunction_json_)) { + if (!cf || !cf->cmdfunction_json_) { return EMSESP::get_device_value_info(output, cmd, id, device_type) ? CommandRet::OK : CommandRet::ERROR; // entity = cmd } }