Skip to content

Commit

Permalink
tests: bluetooth: tester: Allow to pass int instead of bool in comp cmd
Browse files Browse the repository at this point in the history
This will allow to choose more variants of cdp in future if needed.

Signed-off-by: Pavel Vasilyev <[email protected]>
  • Loading branch information
PavelVPV authored and carlescufi committed Oct 6, 2023
1 parent 7fb2929 commit 8b4994f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/bluetooth/tester/src/btp/btp_mesh.h
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ struct btp_mesh_provision_node_cmd_v2 {

#define BTP_MESH_INIT 0x04
struct btp_mesh_init_cmd {
bool comp_alt;
uint8_t comp;
} __packed;

#define BTP_MESH_RESET 0x05
Expand Down
2 changes: 1 addition & 1 deletion tests/bluetooth/tester/src/btp_mesh.c
Original file line number Diff line number Diff line change
Expand Up @@ -1243,7 +1243,7 @@ static uint8_t init(const void *cmd, uint16_t cmd_len,
const struct btp_mesh_init_cmd *cp = cmd;
int err;

if (!cp->comp_alt) {
if (cp->comp == 0) {
LOG_WRN("Loading default comp data");
err = bt_mesh_init(&prov, &comp);
} else {
Expand Down

0 comments on commit 8b4994f

Please sign in to comment.