Skip to content

Commit 946b9fd

Browse files
forx157BLE BOT
authored andcommitted
fix(ble_mesh): fixed heartbeat issue
(cherry picked from commit 167cd47) Co-authored-by: luoxu <luoxu@espressif.com>
1 parent 4143156 commit 946b9fd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

components/bt/esp_ble_mesh/core/storage/settings.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1483,6 +1483,8 @@ int settings_core_commit(void)
14831483
struct bt_mesh_hb_pub *hb_pub = NULL;
14841484
struct bt_mesh_cfg_srv *cfg = NULL;
14851485

1486+
bt_mesh_atomic_set_bit(bt_mesh.flags, BLE_MESH_VALID);
1487+
14861488
hb_pub = bt_mesh_hb_pub_get();
14871489
if (hb_pub && hb_pub->dst != BLE_MESH_ADDR_UNASSIGNED &&
14881490
hb_pub->count && hb_pub->period) {
@@ -1501,7 +1503,6 @@ int settings_core_commit(void)
15011503
cfg->default_ttl = stored_cfg.cfg.default_ttl;
15021504
}
15031505

1504-
bt_mesh_atomic_set_bit(bt_mesh.flags, BLE_MESH_VALID);
15051506
bt_mesh_net_start();
15061507
}
15071508
#endif /* CONFIG_BLE_MESH_NODE */

0 commit comments

Comments
 (0)