mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-02 04:04:31 +02:00
fix(ble_mesh): reject node-reseting when provision link is active (V5.1)
This commit is contained in:
committed by
Jiang Jiang Jian
parent
89e7a95f6c
commit
53b013f041
@@ -102,6 +102,11 @@ void bt_mesh_node_reset(void)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (bt_prov_active()) {
|
||||||
|
BT_WARN("%s, link is still active", __func__);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
bt_mesh.iv_index = 0U;
|
bt_mesh.iv_index = 0U;
|
||||||
bt_mesh.seq = 0U;
|
bt_mesh.seq = 0U;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user