We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c1802d0 + 7fccbcf commit 2178173Copy full SHA for 2178173
components/bt/esp_ble_mesh/mesh_core/settings.c
@@ -1422,6 +1422,8 @@ int settings_core_commit(void)
1422
struct bt_mesh_hb_pub *hb_pub = NULL;
1423
struct bt_mesh_cfg_srv *cfg = NULL;
1424
1425
+ bt_mesh_atomic_set_bit(bt_mesh.flags, BLE_MESH_VALID);
1426
+
1427
hb_pub = bt_mesh_hb_pub_get();
1428
if (hb_pub && hb_pub->dst != BLE_MESH_ADDR_UNASSIGNED &&
1429
hb_pub->count && hb_pub->period) {
@@ -1440,7 +1442,6 @@ int settings_core_commit(void)
1440
1442
cfg->default_ttl = stored_cfg.cfg.default_ttl;
1441
1443
}
1444
- bt_mesh_atomic_set_bit(bt_mesh.flags, BLE_MESH_VALID);
1445
bt_mesh_net_start();
1446
1447
#endif /* CONFIG_BLE_MESH_NODE */
0 commit comments