File tree 2 files changed +7
-0
lines changed
2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -33,6 +33,7 @@ pkg.deps:
33
33
- nimble/host/services/gap
34
34
- nimble/host/services/gatt
35
35
- nimble/host/store/config
36
+ - nimble/host/util
36
37
- nimble/transport
37
38
38
39
pkg.deps.BTSHELL_ANS :
Original file line number Diff line number Diff line change 43
43
#include "host/ble_gatt.h"
44
44
#include "host/ble_store.h"
45
45
#include "host/ble_sm.h"
46
+ #include "host/util/util.h"
46
47
47
48
/* Mandatory services. */
48
49
#include "services/gap/ble_svc_gap.h"
@@ -2105,6 +2106,11 @@ btshell_on_reset(int reason)
2105
2106
static void
2106
2107
btshell_on_sync (void )
2107
2108
{
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
+
2108
2114
#if MYNEWT_VAL (BLE_SM_SC )
2109
2115
int rc ;
2110
2116
You can’t perform that action at this time.
0 commit comments