Skip to content

Commit 2178173

Browse files
committed
Merge branch 'fix/ble_mesh_heartbeat_bug_v5.0' into 'release/v5.0'
fix(ble_mesh): fixed heartbeat issue (v5.0) See merge request espressif/esp-idf!34962
2 parents c1802d0 + 7fccbcf commit 2178173

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

components/bt/esp_ble_mesh/mesh_core/settings.c

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

1425+
bt_mesh_atomic_set_bit(bt_mesh.flags, BLE_MESH_VALID);
1426+
14251427
hb_pub = bt_mesh_hb_pub_get();
14261428
if (hb_pub && hb_pub->dst != BLE_MESH_ADDR_UNASSIGNED &&
14271429
hb_pub->count && hb_pub->period) {
@@ -1440,7 +1442,6 @@ int settings_core_commit(void)
14401442
cfg->default_ttl = stored_cfg.cfg.default_ttl;
14411443
}
14421444

1443-
bt_mesh_atomic_set_bit(bt_mesh.flags, BLE_MESH_VALID);
14441445
bt_mesh_net_start();
14451446
}
14461447
#endif /* CONFIG_BLE_MESH_NODE */

0 commit comments

Comments
 (0)