[modbus] Fix a format warning when logging the frame buffer size (#19934)

This commit is contained in:
J. Nick Koston
2026-09-30 04:55:50 -04:00
committed by GitHub
parent 5baad05926
commit 3cccdca771
+1 -1
View File
@@ -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;