]> sigrok.org Git - libsigrok.git/blobdiff - src/error.c
scpi-pps: Support for the EEZ PSU series
[libsigrok.git] / src / error.c
index af920156bd2bffafdcfa6d58b012a5b953cf3d64..15a25a0033a185e5e72c852ae1cdd64c72d0c3bb 100644 (file)
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
+ * along with this program; if not, see <http://www.gnu.org/licenses/>.
  */
 
-#include "libsigrok.h"
+#include <config.h>
+#include <libsigrok/libsigrok.h>
 
 /**
  * @file
@@ -58,8 +58,6 @@ SR_API const char *sr_strerror(int error_code)
         */
 
        switch (error_code) {
-       case SR_OK_CONTINUE:
-               return "not enough data to decide error status yet";
        case SR_OK:
                return "no error";
        case SR_ERR:
@@ -115,8 +113,6 @@ SR_API const char *sr_strerror_name(int error_code)
         */
 
        switch (error_code) {
-       case SR_OK_CONTINUE:
-               return "SR_OK_CONTINUE";
        case SR_OK:
                return "SR_OK";
        case SR_ERR:
@@ -139,6 +135,8 @@ SR_API const char *sr_strerror_name(int error_code)
                return "SR_ERR_CHANNEL_GROUP";
        case SR_ERR_DATA:
                return "SR_ERR_DATA";
+       case SR_ERR_IO:
+               return "SR_ERR_IO";
        default:
                return "unknown error code";
        }