parent
896e1a45e0
commit
5360d6d706
|
@ -25,7 +25,8 @@ static int mic_send(struct sr_serial_dev_inst *serial, const char *cmd)
|
|||
{
|
||||
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);
|
||||
return SR_ERR;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue