From 49d33a407f883286bcf68a98def5ab087e072964 Mon Sep 17 00:00:00 2001 From: Trevor North Date: Thu, 5 Oct 2023 21:05:55 +0100 Subject: [PATCH] Fix percent logging --- components/ehmtxv2/EHMTX.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/ehmtxv2/EHMTX.cpp b/components/ehmtxv2/EHMTX.cpp index 8b6e0f34..73c06618 100644 --- a/components/ehmtxv2/EHMTX.cpp +++ b/components/ehmtxv2/EHMTX.cpp @@ -264,7 +264,7 @@ namespace esphome } } this->display_gauge = true; - ESP_LOGD(TAG, "show_gauge 2 color %d", round(percent)); + ESP_LOGD(TAG, "show_gauge 2 color %d", percent); } } #else @@ -278,7 +278,7 @@ namespace esphome this->display_gauge = true; this->gauge_value = (uint8_t)(100 - percent) * 7 / 100; } - ESP_LOGD(TAG, "show_gauge 2 color %d", round(percent)); + ESP_LOGD(TAG, "show_gauge 2 color %d", percent); } #endif