Bluetooth: Mesh: Fix unpacking of hb_pub status
Fixes incorrect unpacking of Heartbeat Publication status messages on the Configuration client. Reference to packing format: MshPRTv1.1 section 4.3.2.63 Signed-off-by: Anders Storrø <anders.storro@nordicsemi.no>
This commit is contained in:
parent
46d9c97991
commit
05774c5d76
1 changed files with 2 additions and 2 deletions
|
@ -950,8 +950,8 @@ static int hb_pub_status(struct bt_mesh_model *model,
|
|||
pub.count = net_buf_simple_pull_u8(buf);
|
||||
pub.period = net_buf_simple_pull_u8(buf);
|
||||
pub.ttl = net_buf_simple_pull_u8(buf);
|
||||
pub.feat = net_buf_simple_pull_u8(buf);
|
||||
pub.net_idx = net_buf_simple_pull_u8(buf);
|
||||
pub.feat = net_buf_simple_pull_le16(buf);
|
||||
pub.net_idx = net_buf_simple_pull_le16(buf) & 0xfff;
|
||||
|
||||
if (bt_mesh_msg_ack_ctx_match(&cli->ack_ctx, OP_HEARTBEAT_PUB_STATUS,
|
||||
ctx->addr, (void **)¶m)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue