Fix: clang-tidy

This commit is contained in:
limengdu 2024-10-10 14:54:27 +08:00
parent 50b75cadad
commit 26401b8be0

View File

@ -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();