File tree Expand file tree Collapse file tree 2 files changed +7
-0
lines changed
Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -33,6 +33,7 @@ pkg.deps:
3333 - nimble/host/services/gap
3434 - nimble/host/services/gatt
3535 - nimble/host/store/config
36+ - nimble/host/util
3637 - nimble/transport
3738
3839pkg.deps.BTSHELL_ANS :
Original file line number Diff line number Diff line change 4343#include "host/ble_gatt.h"
4444#include "host/ble_store.h"
4545#include "host/ble_sm.h"
46+ #include "host/util/util.h"
4647
4748/* Mandatory services. */
4849#include "services/gap/ble_svc_gap.h"
@@ -2105,6 +2106,11 @@ btshell_on_reset(int reason)
21052106static void
21062107btshell_on_sync (void )
21072108{
2109+ /* Make sure we have proper identity address set (public preferred) */
2110+ if (ble_hs_util_ensure_addr (0 ) != 0 ) {
2111+ console_printf ("Failed to set identity address\n" );
2112+ }
2113+
21082114#if MYNEWT_VAL (BLE_SM_SC )
21092115 int rc ;
21102116
You can’t perform that action at this time.
0 commit comments