Bluetooth: Mesh: Fix encoding fault count to Health Current Status
There was a missing adjustment to buf->len after fetching the faults from the app. Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
This commit is contained in:
parent
a3a481deb1
commit
53d06a1653
1 changed files with 1 additions and 0 deletions
|
@ -104,6 +104,7 @@ static size_t health_get_current(struct bt_mesh_model *mod,
|
||||||
fault_count = 0;
|
fault_count = 0;
|
||||||
} else {
|
} else {
|
||||||
sys_put_le16(company_id, company_ptr);
|
sys_put_le16(company_id, company_ptr);
|
||||||
|
net_buf_simple_add(msg, fault_count);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
BT_WARN("No callback for getting faults");
|
BT_WARN("No callback for getting faults");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue