aboutsummaryrefslogtreecommitdiff
path: root/ports
diff options
context:
space:
mode:
authorjp-962020-06-08 12:19:56 +0900
committerDamien George2020-06-10 22:33:29 +1000
commit3705bc418cadd9d6ad87f2bcd5443ba82f730e15 (patch)
treee73862ef71c327d1179d4e0b41d2f5b07ad0cc6e /ports
parenta4c96fb3b0c5e3bf83238a0edd0fbcbfd96208c8 (diff)
extmod/modbluetooth: Register default GATT service and fix esp32 init.
This is for the NimBLE bindings, to make sure the default GATT service appears and that the esp32 initialises NimBLE correctly (it now matches stm32).
Diffstat (limited to 'ports')
-rw-r--r--ports/esp32/nimble.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ports/esp32/nimble.c b/ports/esp32/nimble.c
index e60e08bad..16829732c 100644
--- a/ports/esp32/nimble.c
+++ b/ports/esp32/nimble.c
@@ -44,7 +44,6 @@ void mp_bluetooth_nimble_port_preinit(void) {
}
void mp_bluetooth_nimble_port_postinit(void) {
- nimble_port_freertos_init(ble_host_task);
}
void mp_bluetooth_nimble_port_deinit(void) {
@@ -52,6 +51,7 @@ void mp_bluetooth_nimble_port_deinit(void) {
}
void mp_bluetooth_nimble_port_start(void) {
+ nimble_port_freertos_init(ble_host_task);
}
#endif