From: Uwe Hermann Date: Sun, 13 Sep 2015 22:01:18 +0000 (+0200) Subject: motech-lps-30x: Fix blocking serial write timeout. X-Git-Tag: libsigrok-0.4.0~289 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=1a65c5e86fc040608160c77a57008f69b3fd05ca;p=libsigrok.git motech-lps-30x: Fix blocking serial write timeout. This fixes bug #438. --- diff --git a/src/hardware/motech-lps-30x/api.c b/src/hardware/motech-lps-30x/api.c index 83fbcd2c..0ecfcb09 100644 --- a/src/hardware/motech-lps-30x/api.c +++ b/src/hardware/motech-lps-30x/api.c @@ -151,7 +151,8 @@ SR_PRIV int lps_send_va(struct sr_serial_dev_inst *serial, const char *fmt, va_l sr_spew("lps_send_va: \"%s\"", buf); - retc = serial_write_blocking(serial, buf, strlen(buf), 0); + retc = serial_write_blocking(serial, buf, strlen(buf), + serial_timeout(serial, strlen(buf))); if (retc < 0) return SR_ERR;