Skip to content

Commit

Permalink
logic cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
proddy committed Nov 2, 2021
1 parent b8f69ee commit b76b6be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/command.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}
Expand Down

0 comments on commit b76b6be

Please sign in to comment.