mirror of
https://github.com/esphome/esphome.git
synced 2024-12-04 13:44:40 +01:00
Fix: clang-tidy
This commit is contained in:
parent
50b75cadad
commit
26401b8be0
@ -372,7 +372,7 @@ void MR60FDA2Component::set_install_height(uint8_t index) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
send_data[12] = calculate_checksum_(data_frame, 4);
|
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,
|
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 "
|
"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",
|
"0x%02x 0x%02x",
|
||||||
@ -391,7 +391,7 @@ void MR60FDA2Component::set_height_threshold(uint8_t index) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
send_data[12] = calculate_checksum_(data_frame, 4);
|
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,
|
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 "
|
"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",
|
"0x%02x 0x%02x",
|
||||||
@ -410,7 +410,7 @@ void MR60FDA2Component::set_sensitivity(uint8_t index) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
send_data[12] = calculate_checksum_(data_frame, 4);
|
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,
|
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 "
|
"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",
|
"0x%02x 0x%02x",
|
||||||
@ -420,14 +420,14 @@ void MR60FDA2Component::set_sensitivity(uint8_t index) {
|
|||||||
|
|
||||||
void MR60FDA2Component::get_radar_parameters() {
|
void MR60FDA2Component::get_radar_parameters() {
|
||||||
uint8_t send_data[8] = {0x01, 0x00, 0x00, 0x00, 0x00, 0x0E, 0x06, 0xF6};
|
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],
|
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]);
|
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() {
|
void MR60FDA2Component::reset_radar() {
|
||||||
uint8_t send_data[8] = {0x01, 0x00, 0x00, 0x00, 0x00, 0x21, 0x10, 0xCF};
|
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],
|
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]);
|
send_data[2], send_data[3], send_data[4], send_data[5], send_data[6], send_data[7]);
|
||||||
this->get_radar_parameters();
|
this->get_radar_parameters();
|
||||||
|
Loading…
Reference in New Issue
Block a user