From b3187a535c4f7de6fd2403d4b8e67af23ad33915 Mon Sep 17 00:00:00 2001 From: Daniel Hnyk Date: Sun, 25 Aug 2024 19:39:00 +0200 Subject: [PATCH] Change logging message type interpolation --- components/samsung_ac/protocol_nasa.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/samsung_ac/protocol_nasa.cpp b/components/samsung_ac/protocol_nasa.cpp index 7e43a53e..002beb84 100644 --- a/components/samsung_ac/protocol_nasa.cpp +++ b/components/samsung_ac/protocol_nasa.cpp @@ -24,7 +24,7 @@ namespace esphome #define LOG_MESSAGE(message_name, temp, source, dest) \ if (debug_log_messages) \ { \ - ESP_LOGW(TAG, "s:%s d:%s " #message_name " %f", source.c_str(), dest.c_str(), temp); \ + ESP_LOGW(TAG, "s:%s d:%s " #message_name " %g", source.c_str(), dest.c_str(), static_cast(temp)); \ } uint16_t crc16(std::vector &data, int startIndex, int length)