Skip to content

Commit

Permalink
Merge branch 'bugfix/fix_some_minor_issues' into 'master'
Browse files Browse the repository at this point in the history
Fix some minor issues

See merge request adf/esp-adf-internal!1316
  • Loading branch information
jason-mao committed Jul 24, 2024
2 parents f771201 + e0f65b6 commit 99112c8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions components/bluetooth_service/a2dp_stream.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@

#include <stdlib.h>
#include <string.h>
#include <sys/lock.h>
#include <inttypes.h>
#include "nvs.h"
#include "nvs_flash.h"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ static esp_err_t _http_stream_reader_event_handle(http_stream_event_msg_t *msg)

if (msg->event_id == HTTP_STREAM_PRE_REQUEST) {
// Post text data
ESP_LOGI(TAG, "[ + ] HTTP client HTTP_STREAM_PRE_REQUEST, lenght=%d", msg->buffer_len);
ESP_LOGI(TAG, "[ + ] HTTP client HTTP_STREAM_PRE_REQUEST, length=%d", msg->buffer_len);
tts->tts_total_read = 0;
tts->is_begin = true;
int payload_len = snprintf(tts->buffer, tts->buffer_size, GOOGLE_TTS_TEMPLATE, tts->sample_rate, tts->lang_code, tts->text);
Expand All @@ -92,7 +92,7 @@ static esp_err_t _http_stream_reader_event_handle(http_stream_event_msg_t *msg)
}

if (msg->event_id == HTTP_STREAM_ON_RESPONSE) {
ESP_LOGD(TAG, "[ + ] HTTP client HTTP_STREAM_ON_RESPONSE, lenght=%d", msg->buffer_len);
ESP_LOGD(TAG, "[ + ] HTTP client HTTP_STREAM_ON_RESPONSE, length=%d", msg->buffer_len);
/* Read first chunk */
int process_data_len = 0;
char *data_ptr = tts->buffer;
Expand Down

0 comments on commit 99112c8

Please sign in to comment.