mirror of
https://github.com/espressif/esp-nimble.git
synced 2026-06-05 21:04:49 +00:00
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:
@@ -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. */
|
||||
|
||||
Reference in New Issue
Block a user