Skip to content

Commit

Permalink
fix(ble_mesh): reject node-reseting when provision link is active (V5.1)
Browse files Browse the repository at this point in the history
  • Loading branch information
gnameg authored and jack0c committed Jan 2, 2024
1 parent 89e7a95 commit 53b013f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions components/bt/esp_ble_mesh/mesh_core/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,11 @@ void bt_mesh_node_reset(void)
return;
}

if (bt_prov_active()) {
BT_WARN("%s, link is still active", __func__);
return;
}

bt_mesh.iv_index = 0U;
bt_mesh.seq = 0U;

Expand Down

0 comments on commit 53b013f

Please sign in to comment.