bladeRF-cli: return CLI_RET_* codes from calibrate_dc()
The caller in calibrate.c expects CLI return codes, not libbladeRF return codes.
This commit is contained in:
parent
34151f6e71
commit
6bb85a629f
1 changed files with 5 additions and 0 deletions
|
|
@ -1049,5 +1049,10 @@ error:
|
|||
status = bladerf_set_loopback(s->dev, loopback);
|
||||
retval = first_error(retval, status);
|
||||
|
||||
if (retval != 0) {
|
||||
s->last_lib_error = retval;
|
||||
retval = CLI_RET_LIBBLADERF;
|
||||
}
|
||||
|
||||
return retval;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue