parent
5360d6d706
commit
84d328ac98
|
@ -34,7 +34,8 @@ static int center_send(struct sr_serial_dev_inst *serial, const char *cmd)
|
||||||
{
|
{
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
if ((ret = serial_write_blocking(serial, cmd, strlen(cmd), 0)) < 0) {
|
if ((ret = serial_write_blocking(serial, cmd, strlen(cmd),
|
||||||
|
serial_timeout(serial, strlen(cmd)))) < 0) {
|
||||||
sr_err("Error sending '%s' command: %d.", cmd, ret);
|
sr_err("Error sending '%s' command: %d.", cmd, ret);
|
||||||
return SR_ERR;
|
return SR_ERR;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue