Bluetooth: Mesh: Make element as rodata
the reason is that the Mesh Profile clearly stipulates that Mesh nodes cannot change their own element definitions. Signed-off-by: Lingao Meng <menglingao@xiaomi.com>
This commit is contained in:
parent
9369c6f8e1
commit
5f1c2f199b
29 changed files with 130 additions and 126 deletions
|
@ -384,7 +384,7 @@ static int health_pub_update(const struct bt_mesh_model *mod)
|
|||
return 0;
|
||||
}
|
||||
|
||||
int bt_mesh_health_srv_fault_update(struct bt_mesh_elem *elem)
|
||||
int bt_mesh_health_srv_fault_update(const struct bt_mesh_elem *elem)
|
||||
{
|
||||
const struct bt_mesh_model *mod;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue