libbladeRF: add not initialized error code
This commit is contained in:
parent
9d8ab87f75
commit
4ff2639e9d
2 changed files with 4 additions and 0 deletions
|
|
@ -4765,6 +4765,8 @@ void CALL_CONV bladerf_version(struct bladerf_version *version);
|
|||
* indicates to a caller that it may
|
||||
* need to retry the operation later.
|
||||
*/
|
||||
#define BLADERF_ERR_NOT_INIT (-19) /**< Device insufficiently initialized
|
||||
* for operation */
|
||||
|
||||
/**
|
||||
* Obtain a textual description of a value from the \ref RETCODES list
|
||||
|
|
|
|||
|
|
@ -1286,6 +1286,8 @@ const char * bladerf_strerror(int error)
|
|||
return "Insufficient permissions for the requested operation";
|
||||
case BLADERF_ERR_WOULD_BLOCK:
|
||||
return "The operation would block, but has been requested to be non-blocking";
|
||||
case BLADERF_ERR_NOT_INIT:
|
||||
return "Insufficient initialization for the requested operation";
|
||||
case 0:
|
||||
return "Success";
|
||||
default:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue