Skip to content

Commit 8717a0f

Browse files
PavelVPVioannisg
authored andcommitted
Bluetooth: Mesh: Pass correct pointer to publish_sent
This commit fixes a bug where incorrect pointer passed to publish_sent in access.c caused bus fault. Signed-off-by: Pavel Vasilyev <[email protected]>
1 parent cd9421a commit 8717a0f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

subsys/bluetooth/mesh/access.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ static int pub_period_start(struct bt_mesh_model_pub *pub)
215215
BT_DBG("Update failed, skipping publish (err: %d)", err);
216216
pub->count = 0;
217217
pub->period_start = k_uptime_get_32();
218-
publish_sent(err, pub);
218+
publish_sent(err, pub->mod);
219219
return err;
220220
}
221221

0 commit comments

Comments
 (0)