Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

default rxtx binary mode configuration reflects bitmode value #934

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 4 additions & 0 deletions host/utilities/bladeRF-cli/src/cmd/rx.c
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
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