manson-hcs-3xxx: Fix blocking serial write timeout.

This fixes bug #437.
This commit is contained in:
Uwe Hermann 2015-09-13 23:20:03 +02:00
parent 32c45845f7
commit 896e1a45e0
1 changed files with 2 additions and 1 deletions

View File

@ -44,7 +44,8 @@ SR_PRIV int hcs_send_cmd(struct sr_serial_dev_inst *serial, const char *cmd, ...
sr_dbg("Sending '%s'.", cmd_esc);
g_free(cmd_esc);
if ((ret = serial_write_blocking(serial, cmdbuf, strlen(cmdbuf), 0)) < 0) {
if ((ret = serial_write_blocking(serial, cmdbuf, strlen(cmdbuf),
serial_timeout(serial, strlen(cmdbuf)))) < 0) {
sr_err("Error sending command: %d.", ret);
return ret;
}