Bluetooth: Mesh: Fix encoding health status when app has no callback
The branch for handling the case when the app has not provided a callback for health faults was encoding the payload in a wrong way. Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
This commit is contained in:
parent
6b966e4b96
commit
fc679c50f9
1 changed files with 2 additions and 2 deletions
|
@ -105,8 +105,8 @@ static size_t health_get_current(struct bt_mesh_model *mod,
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
BT_WARN("No callback for getting faults");
|
BT_WARN("No callback for getting faults");
|
||||||
net_buf_simple_push_u8(msg, HEALTH_TEST_STANDARD);
|
sys_put_le16(0, company_ptr);
|
||||||
net_buf_simple_push_le16(msg, 0);
|
*test_id = HEALTH_TEST_STANDARD;
|
||||||
fault_count = 0;
|
fault_count = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue