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:
Johan Hedberg 2017-09-28 16:56:49 +03:00 committed by Johan Hedberg
parent a3a481deb1
commit 53d06a1653

View file

@ -104,6 +104,7 @@ static size_t health_get_current(struct bt_mesh_model *mod,
fault_count = 0;
} else {
sys_put_le16(company_id, company_ptr);
net_buf_simple_add(msg, fault_count);
}
} else {
BT_WARN("No callback for getting faults");