[mqtt] fix compiler warnings when idf_send_async is used (#19815)

This commit is contained in:
Patrick
2026-09-28 10:54:20 +02:00
committed by GitHub
parent a000ce90bc
commit bd69b17ef6
@@ -108,7 +108,7 @@ void MQTTBackendESP32::loop() {
if ((now - this->last_dropped_log_time_) >= DROP_LOG_INTERVAL_MS) {
uint16_t dropped = this->mqtt_queue_.get_and_reset_dropped_count();
if (dropped > 0) {
ESP_LOGW(TAG, "Dropped %u messages (%us)", dropped, DROP_LOG_INTERVAL_MS / 1000);
ESP_LOGW(TAG, "Dropped %u messages (%" PRIu32 "s)", dropped, DROP_LOG_INTERVAL_MS / 1000);
}
this->last_dropped_log_time_ = now;
}