Skip to content

Commit ea5f2ec

Browse files
committed
[Bugfix] esp32c2 compile error with newer arduino versions
1 parent 5c01246 commit ea5f2ec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/nimble/esp_port/esp-hci/src/na_hci_driver.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ hci_driver_ops_t na_hci_driver_vhci_ops = {
6666
};
6767

6868
// Prevent linking errors when using arduino + bluedroid with esp32c2
69-
#if defined (CONFIG_IDF_TARGET_ESP32C2)
69+
#if defined(CONFIG_IDF_TARGET_ESP32C2) && ESP_IDF_VERSION < ESP_IDF_VERSION_VAL(5, 5, 1)
7070
void adv_stack_enableClearLegacyAdvVsCmd(bool en){}
7171
void scan_stack_enableAdvFlowCtrlVsCmd(bool en){}
7272
void advFilter_stack_enableDupExcListVsCmd(bool en){}

0 commit comments

Comments
 (0)