]> sigrok.org Git - libsigrok.git/commitdiff
serial.c: Temporary quickfix until a libserialport fix is done.
authorUwe Hermann <redacted>
Fri, 15 Nov 2013 11:23:09 +0000 (12:23 +0100)
committerUwe Hermann <redacted>
Fri, 15 Nov 2013 11:23:09 +0000 (12:23 +0100)
hardware/common/serial.c

index 3d301be212a09e986cb68147ca6e4c3f272e36d6..7dde05e00af35c70cd5513cda5a359a11aaf5656 100644 (file)
@@ -244,11 +244,12 @@ SR_PRIV int serial_read(struct sr_serial_dev_inst *serial, void *buf,
        case SP_ERR_ARG:
                sr_err("Attempted serial port read with invalid arguments.");
                return SR_ERR_ARG;
-       case SP_ERR_FAIL:
-               error = sp_last_error_message();
-               sr_err("Read error: %s.", error);
-               sp_free_error_message(error);
-               return SR_ERR;
+       // Temporarily disabled, will come back later.
+       // case SP_ERR_FAIL:
+       //      error = sp_last_error_message();
+       //      sr_err("Read error: %s.", error);
+       //      sp_free_error_message(error);
+       //      return SR_ERR;
        }
 
        sr_spew("Read %d/%d bytes (fd %d).", ret, count, serial->fd);