diff --git a/src/command.cpp b/src/command.cpp index 013f93e35..a0e1f7504 100644 --- a/src/command.cpp +++ b/src/command.cpp @@ -41,6 +41,7 @@ bool Command::call(const uint8_t device_type, const char * cmd, const char * val } #ifdef EMSESP_DEBUG + std::string dname = EMSdevice::device_type_2_device_name(device_type); if (value == nullptr) { LOG_DEBUG(F("[DEBUG] Calling %s command '%s'"), dname.c_str(), cmd); } else if (id == -1) {