Skip to content

Commit ecda300

Browse files
author
Jiang Jiang Jian
committed
Merge branch 'fix/ble_mesh_heartbeat_bug_v5.3' into 'release/v5.3'
fix(ble_mesh): fixed heartbeat issue (v5.3) See merge request espressif/esp-idf!34965
2 parents 075e6d8 + 946b9fd commit ecda300

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)