Skip to content

Commit

Permalink
default rxtx binary mode configuration reflects bitmode value
Browse files Browse the repository at this point in the history
  • Loading branch information
Aleix Galan committed Aug 23, 2023
1 parent 16c0598 commit f8d347e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions host/utilities/bladeRF-cli/src/cmd/rx.c
Original file line number Diff line number Diff line change
Expand Up @@ -517,6 +517,10 @@ static int rx_cmd_config(struct cli_state *s, int argc, char **argv)
return 0;
}

enum rxtx_fmt fmt;
fmt = (s->bit_mode_8bit) ? RXTX_FMT_BIN_SC8Q7 : RXTX_FMT_BIN_SC16Q11;
rxtx_set_file_format(s->rx, fmt);

for (i = 2; i < argc; i++) {
status = rxtx_handle_config_param(s, s->rx, argv[0], argv[i], &val);

Expand Down
4 changes: 4 additions & 0 deletions host/utilities/bladeRF-cli/src/cmd/tx.c
Original file line number Diff line number Diff line change
Expand Up @@ -576,6 +576,10 @@ static int tx_config(struct cli_state *s, int argc, char **argv)
return 0;
}

enum rxtx_fmt fmt;
fmt = (s->bit_mode_8bit) ? RXTX_FMT_BIN_SC8Q7 : RXTX_FMT_BIN_SC16Q11;
rxtx_set_file_format(s->tx, fmt);

for (i = 2; i < argc; i++) {
status = rxtx_handle_config_param(s, s->tx, argv[0], argv[i], &val);

Expand Down

0 comments on commit f8d347e

Please sign in to comment.