Skip to content

Commit

Permalink
apps/bttester: add TTL to model_send command
Browse files Browse the repository at this point in the history
Field was missing.
  • Loading branch information
KKopyscinski committed Nov 17, 2023
1 parent 9a99fe7 commit 2b8a8e9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions apps/bttester/src/btp/btp_mesh.h
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ struct btp_mesh_lpn_set_cmd {

#define BTP_MESH_MODEL_SEND 0x0f
struct btp_mesh_model_send_cmd {
uint8_t ttl;
uint16_t src;
uint16_t dst;
uint8_t payload_len;
Expand Down
2 changes: 1 addition & 1 deletion apps/bttester/src/btp_mesh.c
Original file line number Diff line number Diff line change
Expand Up @@ -707,7 +707,7 @@ model_send(const void *cmd, uint16_t cmd_len,
.net_idx = net.net_idx,
.app_idx = BT_MESH_KEY_DEV,
.addr = sys_le16_to_cpu(cp->dst),
.send_ttl = BT_MESH_TTL_DEFAULT,
.send_ttl = cp->ttl,
};

src = sys_le16_to_cpu(cp->src);
Expand Down

0 comments on commit 2b8a8e9

Please sign in to comment.