summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ports/esp32/mpnimbleport.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/ports/esp32/mpnimbleport.c b/ports/esp32/mpnimbleport.c
index 669aeb746..ce4b77727 100644
--- a/ports/esp32/mpnimbleport.c
+++ b/ports/esp32/mpnimbleport.c
@@ -32,7 +32,6 @@
#define DEBUG_printf(...) // printf("nimble (esp32): " __VA_ARGS__)
-#include "esp_nimble_hci.h"
#include "nimble/nimble_port.h"
#include "nimble/nimble_port_freertos.h"
@@ -45,14 +44,13 @@ static void ble_host_task(void *param) {
}
void mp_bluetooth_nimble_port_hci_init(void) {
- DEBUG_printf("mp_bluetooth_nimble_port_hci_init\n");
- esp_nimble_hci_init();
+ // On ESP-IDF the standard nimble_port_init() function calls
+ // esp_nimble_init() which initialises the HCI
}
void mp_bluetooth_nimble_port_hci_deinit(void) {
- DEBUG_printf("mp_bluetooth_nimble_port_hci_deinit\n");
-
- esp_nimble_hci_deinit();
+ // As above, this is handled by ESP-IDF nimble_port_deinit()
+ // (called below)
}
void mp_bluetooth_nimble_port_start(void) {