Merge branch 'bugfix/btdm_add_makefile_for_coex_demo' into 'master'

Component/bt: add makefile for coex demo

See merge request idf/esp-idf!2477
This commit is contained in:
Angus Gratton 2018-05-31 09:00:18 +08:00
commit e764a3e671
2 changed files with 11 additions and 1 deletions

View File

@ -0,0 +1,9 @@
#
# This is a project Makefile. It is assumed the directory this Makefile resides in is a
# project subdirectory.
#
PROJECT_NAME := bt_ble_coex
include $(IDF_PATH)/make/project.mk

View File

@ -53,7 +53,8 @@ void bt_app_a2d_cb(esp_a2d_cb_event_t event, esp_a2d_cb_param_t *param)
void bt_app_a2d_data_cb(const uint8_t *data, uint32_t len)
{
i2s_write_bytes(0, (const char *)data, len, portMAX_DELAY);
size_t bytes_written;
i2s_write(0, data, len, &bytes_written, portMAX_DELAY);
if (++m_pkt_cnt % 100 == 0) {
ESP_LOGI(BT_AV_TAG, "Audio packet count %u", m_pkt_cnt);
}