ソースを参照

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
Angus Gratton 7 年 前
コミット
e764a3e671

+ 9 - 0
examples/bluetooth/a2dp_gatts_coex/Makefile

@@ -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
+

+ 2 - 1
examples/bluetooth/a2dp_gatts_coex/main/bt_app_av.c

@@ -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);
     }