mirror of
https://github.com/espressif/esp-nimble.git
synced 2026-10-08 15:47:22 +00:00
nimble/host: Make gap init before att
This is needed as eatt is registering listener in gap nowadays
This commit is contained in:
committed by
Krzysztof Kopyściński
parent
66797d56e5
commit
dd4e011ed6
@@ -734,6 +734,11 @@ ble_hs_init(void)
|
|||||||
rc = ble_l2cap_init();
|
rc = ble_l2cap_init();
|
||||||
SYSINIT_PANIC_ASSERT(rc == 0);
|
SYSINIT_PANIC_ASSERT(rc == 0);
|
||||||
|
|
||||||
|
#endif
|
||||||
|
rc = ble_gap_init();
|
||||||
|
SYSINIT_PANIC_ASSERT(rc == 0);
|
||||||
|
#if NIMBLE_BLE_CONNECT
|
||||||
|
|
||||||
rc = ble_att_init();
|
rc = ble_att_init();
|
||||||
SYSINIT_PANIC_ASSERT(rc == 0);
|
SYSINIT_PANIC_ASSERT(rc == 0);
|
||||||
|
|
||||||
@@ -746,8 +751,6 @@ ble_hs_init(void)
|
|||||||
rc = ble_gatts_init();
|
rc = ble_gatts_init();
|
||||||
SYSINIT_PANIC_ASSERT(rc == 0);
|
SYSINIT_PANIC_ASSERT(rc == 0);
|
||||||
#endif
|
#endif
|
||||||
rc = ble_gap_init();
|
|
||||||
SYSINIT_PANIC_ASSERT(rc == 0);
|
|
||||||
|
|
||||||
ble_hs_stop_init();
|
ble_hs_stop_init();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user