From 8f5db90cf08a4ea19c776c4c3053137e185a3e3f Mon Sep 17 00:00:00 2001 From: Matthias Ringwald Date: Sun, 6 Aug 2017 16:57:12 +0200 Subject: [PATCH] esp32: fix compile for HFP/HSP demos --- port/esp32/create_examples.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/port/esp32/create_examples.py b/port/esp32/create_examples.py index 9fd4cbee2..6c258b8f7 100755 --- a/port/esp32/create_examples.py +++ b/port/esp32/create_examples.py @@ -73,6 +73,11 @@ for file in os.listdir(examples_embedded): # copy example file shutil.copyfile(examples_embedded + file, apps_folder + "/main/" + example + ".c") + # add sco_demo_util.c for audio examples + if example in ['hfp_ag_demo','hfp_hf_demo', 'hsp_ag_demo', 'hsp_hf_demo']: + shutil.copy(examples_embedded + 'sco_demo_util.c', apps_folder + '/main/') + shutil.copy(examples_embedded + 'sco_demo_util.h', apps_folder + '/main/') + # add component.mk file to main folder shutil.copyfile(script_path + '/template/main/component.mk', apps_folder + "/main/component.mk")