From df4ce52deb355911aa189e60d7434ea258832d76 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Wed, 31 Dec 2025 21:37:05 -1000 Subject: [PATCH] reduce --- esphome/components/seeed_mr60fda2/seeed_mr60fda2.cpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/esphome/components/seeed_mr60fda2/seeed_mr60fda2.cpp b/esphome/components/seeed_mr60fda2/seeed_mr60fda2.cpp index aa697d7f9d..b5b5b4d05a 100644 --- a/esphome/components/seeed_mr60fda2/seeed_mr60fda2.cpp +++ b/esphome/components/seeed_mr60fda2/seeed_mr60fda2.cpp @@ -210,9 +210,7 @@ void MR60FDA2Component::split_frame_(uint8_t buffer) { char byte_buf[format_hex_pretty_size(1)]; #endif ESP_LOGV(TAG, "CURRENT_FRAME: %s %s", - format_hex_pretty_to(frame_buf, this->current_frame_buf_, - this->current_frame_len_ < MR60FDA2_MAX_LOG_BYTES ? this->current_frame_len_ - : MR60FDA2_MAX_LOG_BYTES), + format_hex_pretty_to(frame_buf, this->current_frame_buf_, this->current_frame_len_), format_hex_pretty_to(byte_buf, &buffer, 1)); this->current_frame_locate_ = LOCATE_FRAME_HEADER; } @@ -242,9 +240,7 @@ void MR60FDA2Component::split_frame_(uint8_t buffer) { char byte_buf[format_hex_pretty_size(1)]; #endif ESP_LOGV(TAG, "GET CURRENT_FRAME: %s %s", - format_hex_pretty_to(frame_buf, this->current_frame_buf_, - this->current_frame_len_ < MR60FDA2_MAX_LOG_BYTES ? this->current_frame_len_ - : MR60FDA2_MAX_LOG_BYTES), + format_hex_pretty_to(frame_buf, this->current_frame_buf_, this->current_frame_len_), format_hex_pretty_to(byte_buf, &buffer, 1)); this->current_frame_locate_ = LOCATE_FRAME_HEADER;