]> granicus.if.org Git - esp-idf/commitdiff
Component/bt: add makefile for coex demo
authorzhiweijian <zhiweijian@espressif.com>
Wed, 30 May 2018 08:21:35 +0000 (16:21 +0800)
committerzhiweijian <zhiweijian@espressif.com>
Wed, 30 May 2018 11:33:52 +0000 (19:33 +0800)
examples/bluetooth/a2dp_gatts_coex/Makefile [new file with mode: 0644]
examples/bluetooth/a2dp_gatts_coex/main/bt_app_av.c

diff --git a/examples/bluetooth/a2dp_gatts_coex/Makefile b/examples/bluetooth/a2dp_gatts_coex/Makefile
new file mode 100644 (file)
index 0000000..4c3cfbe
--- /dev/null
@@ -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
+
index 0b966ccda7ba5c10830b7875cc5fe88acd6ef923..c015bfa621f01bacc21336f533845391a1bd53fc 100644 (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);
     }