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);