motech-lps-30x: Fix blocking serial write timeout.

This fixes bug #438.
This commit is contained in:
Uwe Hermann 2015-09-14 00:01:18 +02:00
parent d545c81c96
commit 1a65c5e86f
1 changed files with 2 additions and 1 deletions

View File

@ -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); 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) if (retc < 0)
return SR_ERR; return SR_ERR;