mirror of
https://github.com/esphome/esphome.git
synced 2026-10-03 01:35:59 +00:00
[ufm01] Fix a format warning when logging the frame sync position (#19944)
This commit is contained in:
@@ -261,7 +261,7 @@ bool UFM01Component::process_active_stream_() {
|
|||||||
}
|
}
|
||||||
if ((this->read_index_ == 0 && this->data_[0] != FRAME_START_BYTE_1) ||
|
if ((this->read_index_ == 0 && this->data_[0] != FRAME_START_BYTE_1) ||
|
||||||
(this->read_index_ == 1 && this->data_[1] != FRAME_START_BYTE_2)) {
|
(this->read_index_ == 1 && this->data_[1] != FRAME_START_BYTE_2)) {
|
||||||
ESP_LOGD(TAG, "not start of data at %d (is 0x%02X)", this->read_index_, this->data_[this->read_index_]);
|
ESP_LOGD(TAG, "not start of data at %" PRId32 " (is 0x%02X)", this->read_index_, this->data_[this->read_index_]);
|
||||||
this->read_index_ = 0;
|
this->read_index_ = 0;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user