From b7d2626880e757f7cb0411020e1ae5a653b76cb1 Mon Sep 17 00:00:00 2001 From: limengdu <37475446+limengdu@users.noreply.github.com> Date: Tue, 5 Nov 2024 17:22:54 +0800 Subject: [PATCH] Fix: current_height_threshold_int_ --- esphome/components/seeed_mr60fda2/seeed_mr60fda2.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/esphome/components/seeed_mr60fda2/seeed_mr60fda2.cpp b/esphome/components/seeed_mr60fda2/seeed_mr60fda2.cpp index 399b710f25..089a78d2a7 100644 --- a/esphome/components/seeed_mr60fda2/seeed_mr60fda2.cpp +++ b/esphome/components/seeed_mr60fda2/seeed_mr60fda2.cpp @@ -298,10 +298,10 @@ void MR60FDA2Component::process_frame_() { } if (this->height_threshold_select_ != nullptr) { - uint32_t current_height_threshold_int_ = + uint32_t current_height_threshold_int = encode_uint32(current_data_buf_[7], current_data_buf_[6], current_data_buf_[5], current_data_buf_[4]); - height_threshold_float = bit_cast(current_height_threshold_int_); + height_threshold_float = bit_cast(current_height_threshold_int); size_t select_index = find_nearest_index(height_threshold_float, HEIGHT_THRESHOLD, 7); this->height_threshold_select_->publish_state(this->height_threshold_select_->at(select_index).value()); }