From 26401b8be080cd30a938d22a68a07d29c8276560 Mon Sep 17 00:00:00 2001 From: limengdu <37475446+limengdu@users.noreply.github.com> Date: Thu, 10 Oct 2024 14:54:27 +0800 Subject: [PATCH] Fix: clang-tidy --- esphome/components/seeed_mr60fda2/seeed_mr60fda2.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/esphome/components/seeed_mr60fda2/seeed_mr60fda2.cpp b/esphome/components/seeed_mr60fda2/seeed_mr60fda2.cpp index 9e61116137..a3983b5723 100644 --- a/esphome/components/seeed_mr60fda2/seeed_mr60fda2.cpp +++ b/esphome/components/seeed_mr60fda2/seeed_mr60fda2.cpp @@ -372,7 +372,7 @@ void MR60FDA2Component::set_install_height(uint8_t index) { } send_data[12] = calculate_checksum_(data_frame, 4); - this->send_query_(send_data, send_data_len); + this->send_query_(send_data, 13); ESP_LOGD(TAG, "SEND INSTALL HEIGHT FRAME: 0x%02x 0x%02x 0x%02x 0x%02x 0x%02x 0x%02x 0x%02x 0x%02x 0x%02x 0x%02x 0x%02x " "0x%02x 0x%02x", @@ -391,7 +391,7 @@ void MR60FDA2Component::set_height_threshold(uint8_t index) { } send_data[12] = calculate_checksum_(data_frame, 4); - this->send_query_(send_data, send_data_len); + this->send_query_(send_data, 13); ESP_LOGD(TAG, "SEND HEIGHT THRESHOLD: 0x%02x 0x%02x 0x%02x 0x%02x 0x%02x 0x%02x 0x%02x 0x%02x 0x%02x 0x%02x 0x%02x " "0x%02x 0x%02x", @@ -410,7 +410,7 @@ void MR60FDA2Component::set_sensitivity(uint8_t index) { } send_data[12] = calculate_checksum_(data_frame, 4); - this->send_query_(send_data, send_data_len); + this->send_query_(send_data, 13); ESP_LOGD(TAG, "SEND SET SENSITIVITY: 0x%02x 0x%02x 0x%02x 0x%02x 0x%02x 0x%02x 0x%02x 0x%02x 0x%02x 0x%02x 0x%02x " "0x%02x 0x%02x", @@ -420,14 +420,14 @@ void MR60FDA2Component::set_sensitivity(uint8_t index) { void MR60FDA2Component::get_radar_parameters() { uint8_t send_data[8] = {0x01, 0x00, 0x00, 0x00, 0x00, 0x0E, 0x06, 0xF6}; - this->send_query_(send_data, send_data_len); + this->send_query_(send_data, 8); ESP_LOGD(TAG, "SEND GET PARAMETERS: 0x%02x 0x%02x 0x%02x 0x%02x 0x%02x 0x%02x 0x%02x 0x%02x", send_data[0], send_data[1], send_data[2], send_data[3], send_data[4], send_data[5], send_data[6], send_data[7]); } void MR60FDA2Component::reset_radar() { uint8_t send_data[8] = {0x01, 0x00, 0x00, 0x00, 0x00, 0x21, 0x10, 0xCF}; - this->send_query_(send_data, send_data_len); + this->send_query_(send_data, 8); ESP_LOGD(TAG, "SEND RESET: 0x%02x 0x%02x 0x%02x 0x%02x 0x%02x 0x%02x 0x%02x 0x%02x", send_data[0], send_data[1], send_data[2], send_data[3], send_data[4], send_data[5], send_data[6], send_data[7]); this->get_radar_parameters();