fix(log): Remove initiator function was picking the worg variable for logging

This commit is contained in:
Euripedes Rocha Filho
2025-07-28 10:58:23 +02:00
committed by Rocha Euripedes
parent 31ac4fe981
commit 4711ed97ae

View File

@@ -1217,11 +1217,11 @@ static esp_err_t deliver_suback(esp_mqtt_client_handle_t client)
static bool remove_initiator_message(esp_mqtt_client_handle_t client, int msg_type, int msg_id)
{
if (outbox_delete(client->outbox, msg_id, msg_type) == ESP_OK) {
ESP_LOGD(TAG, "Removed pending_id=%d", client->mqtt_state.pending_msg_id);
ESP_LOGD(TAG, "Removed pending_id=%d", msg_id);
return true;
}
ESP_LOGD(TAG, "Failed to remove pending_id=%d", client->mqtt_state.pending_msg_id);
ESP_LOGD(TAG, "Failed to remove pending_id=%d", msg_id);
return false;
}