mirror of
https://github.com/espressif/esp-idf.git
synced 2025-07-30 02:37:19 +02:00
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
This commit is contained in:
@ -1483,6 +1483,8 @@ int settings_core_commit(void)
|
||||
struct bt_mesh_hb_pub *hb_pub = NULL;
|
||||
struct bt_mesh_cfg_srv *cfg = NULL;
|
||||
|
||||
bt_mesh_atomic_set_bit(bt_mesh.flags, BLE_MESH_VALID);
|
||||
|
||||
hb_pub = bt_mesh_hb_pub_get();
|
||||
if (hb_pub && hb_pub->dst != BLE_MESH_ADDR_UNASSIGNED &&
|
||||
hb_pub->count && hb_pub->period) {
|
||||
@ -1501,7 +1503,6 @@ int settings_core_commit(void)
|
||||
cfg->default_ttl = stored_cfg.cfg.default_ttl;
|
||||
}
|
||||
|
||||
bt_mesh_atomic_set_bit(bt_mesh.flags, BLE_MESH_VALID);
|
||||
bt_mesh_net_start();
|
||||
}
|
||||
#endif /* CONFIG_BLE_MESH_NODE */
|
||||
|
Reference in New Issue
Block a user