Skip to content

Commit

Permalink
Bluetooth: Mesh: Fix not updating health publication message
Browse files Browse the repository at this point in the history
The bt_mesh_fault_update() API is meant for updating the publication
message and sending it out to the network, however it was missing the
necessary call to health_pub_update() which is responsible for
updating the publication message.

Fixes #15300

Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
  • Loading branch information
Johan Hedberg authored and jhedberg committed Apr 10, 2019
1 parent 9926f94 commit 686f5c7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions subsys/bluetooth/host/mesh/health_srv.c
Original file line number Diff line number Diff line change
Expand Up @@ -358,6 +358,8 @@ int bt_mesh_fault_update(struct bt_mesh_elem *elem)
return -EINVAL;
}

health_pub_update(mod);

return bt_mesh_model_publish(mod);
}

Expand Down

0 comments on commit 686f5c7

Please sign in to comment.