Skip to content

Commit 9199844

Browse files
Johan HedbergAnas Nashif
authored andcommitted
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 <[email protected]>
1 parent f7279ea commit 9199844

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

subsys/bluetooth/host/mesh/health.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@ static size_t health_get_current(struct bt_mesh_model *mod,
104104
fault_count = 0;
105105
} else {
106106
sys_put_le16(company_id, company_ptr);
107+
net_buf_simple_add(msg, fault_count);
107108
}
108109
} else {
109110
BT_WARN("No callback for getting faults");

0 commit comments

Comments
 (0)