mirror of
https://github.com/espressif/esp-idf.git
synced 2025-07-31 11:17:20 +02:00
ble_mesh: Fix update wrong last_hb info
This commit is contained in:
@ -367,7 +367,7 @@ static int provisioner_store_node(struct bt_mesh_node *node, bool prov, bool sto
|
|||||||
}
|
}
|
||||||
|
|
||||||
memcpy(mesh_nodes[i], node, sizeof(struct bt_mesh_node));
|
memcpy(mesh_nodes[i], node, sizeof(struct bt_mesh_node));
|
||||||
node->last_hb = k_uptime_get_32() / 1000;
|
mesh_nodes[i]->last_hb = k_uptime_get_32() / 1000;
|
||||||
provisioner_node_count_inc(prov);
|
provisioner_node_count_inc(prov);
|
||||||
if (index) {
|
if (index) {
|
||||||
*index = i;
|
*index = i;
|
||||||
|
Reference in New Issue
Block a user