mirror of
https://github.com/esphome/esphome.git
synced 2026-10-02 01:10:22 +00:00
[modbus] Fix a format warning when logging the frame buffer size (#19934)
This commit is contained in:
@@ -210,7 +210,7 @@ void ModbusServerHub::parse_modbus_frames() {
|
||||
this->deferred_payload_len_ = 0;
|
||||
}
|
||||
size_t size = this->rx_buffer_.size();
|
||||
ESP_LOGVV(TAG, "Parsing frames buffer size = %" PRIu32, size);
|
||||
ESP_LOGVV(TAG, "Parsing frames buffer size = %zu", size);
|
||||
bool retry_as_client = false;
|
||||
// A broadcast is a client request, never a peer response; clear any stale expectation (RTU is half-duplex).
|
||||
const bool is_broadcast = this->rx_buffer_[0] == BROADCAST_ADDRESS;
|
||||
|
||||
Reference in New Issue
Block a user