From 2f0f45f3ece1fff095e4ea5b9ace9865fe5fa6fb Mon Sep 17 00:00:00 2001 From: MichaelDvP <59284019+MichaelDvP@users.noreply.github.com> Date: Mon, 10 May 2021 16:16:34 +0200 Subject: [PATCH] fix build error with debug_flag --- src/command.cpp | 1 + 1 file changed, 1 insertion(+) 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) {