mesh: Fix structure memeber initialization

This fixes incorrectly reversed assignment of "friend" value in
convert_node_to_storage()
This commit is contained in:
Inga Stotland 2019-04-22 08:25:55 -07:00 committed by Brian Gix
parent ecf001daa1
commit 1e5e98c3b3

View File

@ -1297,7 +1297,7 @@ static void convert_node_to_storage(struct mesh_node *node,
memcpy(db_node->uuid, node->dev_uuid, 16);
node->friend = db_node->modes.friend;
db_node->modes.friend = node->friend;
db_node->modes.relay.state = node->relay.mode;
db_node->modes.relay.cnt = node->relay.cnt;
db_node->modes.relay.interval = node->relay.interval;