From ce46d0a089453c27752781371a8c0dbec7f48fb2 Mon Sep 17 00:00:00 2001 From: Jason2866 <24528715+Jason2866@users.noreply.github.com> Date: Tue, 11 Oct 2022 17:46:15 +0200 Subject: [PATCH] Fix build with esp32c3 --- .../src/nimble/esp_port/esp-hci/src/esp_nimble_hci.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/libesp32_div/NimBLE-Arduino/src/nimble/esp_port/esp-hci/src/esp_nimble_hci.c b/lib/libesp32_div/NimBLE-Arduino/src/nimble/esp_port/esp-hci/src/esp_nimble_hci.c index f4857ee2d..8ae48a9c7 100644 --- a/lib/libesp32_div/NimBLE-Arduino/src/nimble/esp_port/esp-hci/src/esp_nimble_hci.c +++ b/lib/libesp32_div/NimBLE-Arduino/src/nimble/esp_port/esp-hci/src/esp_nimble_hci.c @@ -138,7 +138,9 @@ int ble_hci_trans_hs_acl_tx(struct os_mbuf *om) { uint16_t len = 0; uint8_t data[MYNEWT_VAL(BLE_ACL_BUF_SIZE) + 3], rc = 0; +#ifndef CONFIG_FREERTOS_UNICORE bool tx_using_nimble_core = 0; +#endif /* If this packet is zero length, just free it */ if (OS_MBUF_PKTLEN(om) == 0) { os_mbuf_free_chain(om);