bladeRF-cli: Fixed 'xb enable 200' return code for outdated FPGA
This commit is contained in:
parent
848c10ae13
commit
a5b87f83cd
1 changed files with 3 additions and 2 deletions
|
|
@ -35,8 +35,9 @@ int cmd_xb(struct cli_state *state, int argc, char **argv)
|
|||
if (!strcmp(argv[2], "200")) {
|
||||
printf(" Enabling transverter board\n");
|
||||
status = bladerf_expansion_attach(state->dev, BLADERF_XB_200);
|
||||
if (status) {
|
||||
return status;
|
||||
if (status != 0) {
|
||||
state->last_lib_error = status;
|
||||
return CLI_RET_LIBBLADERF;
|
||||
}
|
||||
printf(" Transverter board successfully enabled\n");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue