libbladeRF: add not initialized error code

This commit is contained in:
Vanya A. Sergeev 2017-04-21 02:26:35 -07:00 • committed by Robert Ghilduta
commit 4ff2639e9d
2 changed files with 4 additions and 0 deletions

View file

@ -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

View file

@ -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: