nimble/host: no random address fix

The app didn't build on dialog_da1469x-dk-pro board.
Couldn't load random address.
This commit is contained in:
Jakub
2021-09-01 16:49:39 +02:00
committed by Szymon Janc
parent 534afc8c48
commit 854fc2fafc
+6 -1
View File
@@ -55,8 +55,13 @@ ble_hs_util_ensure_rand_addr(void)
/* Otherwise, try to load a random address. */
rc = ble_hs_util_load_rand_addr(&addr);
if (rc != 0) {
return rc;
/* If it didn't work, generate random address */
rc = ble_hs_id_gen_rnd(0, &addr);
if (rc != 0) {
return rc;
}
}
/* Configure nimble to use the random address. */