mirror of
https://github.com/espressif/esp-nimble.git
synced 2026-09-18 15:09:55 +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();
|
||||
SYSINIT_PANIC_ASSERT(rc == 0);
|
||||
|
||||
#endif
|
||||
rc = ble_gap_init();
|
||||
SYSINIT_PANIC_ASSERT(rc == 0);
|
||||
#if NIMBLE_BLE_CONNECT
|
||||
|
||||
rc = ble_att_init();
|
||||
SYSINIT_PANIC_ASSERT(rc == 0);
|
||||
|
||||
@@ -746,8 +751,6 @@ ble_hs_init(void)
|
||||
rc = ble_gatts_init();
|
||||
SYSINIT_PANIC_ASSERT(rc == 0);
|
||||
#endif
|
||||
rc = ble_gap_init();
|
||||
SYSINIT_PANIC_ASSERT(rc == 0);
|
||||
|
||||
ble_hs_stop_init();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user