conrad-digi-35-cpu: Fix blocking serial write timeout.
This fixes bug #430.
This commit is contained in:
parent
b9ed8eabfd
commit
8b9eb639b2
|
@ -49,7 +49,8 @@ SR_PRIV int send_msg1(const struct sr_dev_inst *sdi, char cmd, int param)
|
||||||
|
|
||||||
sr_spew("send_msg1(): %c%c%c%c\\r", buf[0], buf[1], buf[2], buf[3]);
|
sr_spew("send_msg1(): %c%c%c%c\\r", buf[0], buf[1], buf[2], buf[3]);
|
||||||
|
|
||||||
if (serial_write_blocking(serial, buf, sizeof(buf), 0) < (int)sizeof(buf)) {
|
if (serial_write_blocking(serial, buf, sizeof(buf),
|
||||||
|
serial_timeout(serial, sizeof(buf))) < (int)sizeof(buf)) {
|
||||||
sr_err("Write error for cmd=%c", cmd);
|
sr_err("Write error for cmd=%c", cmd);
|
||||||
return SR_ERR;
|
return SR_ERR;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue