const char *str;
/*
- * Note: All defined SR_* error macros from libsigrok.h should have
+ * Note: All defined SR_* error macros from libsigrok.h must have
* an entry in this function, as well as in sr_strerror_name().
*/
case SR_ERR_NA:
str = "not applicable";
break;
+ case SR_ERR_DEV_CLOSED:
+ str = "device closed but should be open";
+ break;
+ case SR_ERR_TIMEOUT:
+ str = "timeout occurred";
+ break;
default:
str = "unknown error";
break;
const char *str;
/*
- * Note: All defined SR_* error macros from libsigrok.h should have
+ * Note: All defined SR_* error macros from libsigrok.h must have
* an entry in this function, as well as in sr_strerror().
*/
case SR_ERR_NA:
str = "SR_ERR_NA";
break;
+ case SR_ERR_DEV_CLOSED:
+ str = "SR_ERR_DEV_CLOSED";
+ break;
+ case SR_ERR_TIMEOUT:
+ str = "SR_ERR_TIMEOUT";
+ break;
default:
str = "unknown error code";
break;