mirror of
https://github.com/espressif/esp-mqtt.git
synced 2025-09-26 07:01:31 +02:00
fix(log): Remove initiator function was picking the worg variable for logging
This commit is contained in:
committed by
Rocha Euripedes
parent
31ac4fe981
commit
4711ed97ae
@@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user