diff --git a/host/libraries/libbladeRF/include/libbladeRF.h b/host/libraries/libbladeRF/include/libbladeRF.h index b26edb17..76134f5a 100644 --- a/host/libraries/libbladeRF/include/libbladeRF.h +++ b/host/libraries/libbladeRF/include/libbladeRF.h @@ -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 diff --git a/host/libraries/libbladeRF/src/bladerf.c b/host/libraries/libbladeRF/src/bladerf.c index d40576e1..845bc6da 100644 --- a/host/libraries/libbladeRF/src/bladerf.c +++ b/host/libraries/libbladeRF/src/bladerf.c @@ -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: