X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=src%2Fhardware%2Fcenter-3xx%2Fprotocol.c;h=e7af103905c7cc23143d8d15ae23a5b45e18b01c;hb=98bfc4741f76b07e7db4c9628a6924004fc4fff4;hp=16b23bdac8642f70243f639a82c23b1c61856511;hpb=3582ce8a01ef4f4befd3fccc28c5788196d48499;p=libsigrok.git diff --git a/src/hardware/center-3xx/protocol.c b/src/hardware/center-3xx/protocol.c index 16b23bda..e7af1039 100644 --- a/src/hardware/center-3xx/protocol.c +++ b/src/hardware/center-3xx/protocol.c @@ -31,7 +31,7 @@ static int center_send(struct sr_serial_dev_inst *serial, const char *cmd) { int ret; - if ((ret = serial_write(serial, cmd, strlen(cmd))) < 0) { + if ((ret = serial_write_blocking(serial, cmd, strlen(cmd), 0)) < 0) { sr_err("Error sending '%s' command: %d.", cmd, ret); return SR_ERR; }