1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-27 15:31:17 +01:00

pkg/nimble: auto initialize build-in services

This commit is contained in:
Hauke Petersen 2019-03-07 16:21:08 +01:00
parent f3257f0bfe
commit 8a849be118

View File

@ -93,4 +93,12 @@ void nimble_riot_init(void)
res = ble_hs_id_infer_auto(0, &nimble_riot_own_addr_type);
assert(res == 0);
(void)res;
/* initialize the configured, build-in services */
#ifdef MODULE_NIMBLE_SVC_GAP
ble_svc_gap_init();
#endif
#ifdef MODULE_NIMBLE_SVC_GATT
ble_svc_gatt_init();
#endif
}