ble_mesh: Fix update wrong last_hb info

This commit is contained in:
lly
2020-03-25 12:42:32 +08:00
committed by baohongde
parent fb33c67532
commit f3e107ada9

View File

@ -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));
node->last_hb = k_uptime_get_32() / 1000;
mesh_nodes[i]->last_hb = k_uptime_get_32() / 1000;
provisioner_node_count_inc(prov);
if (index) {
*index = i;