X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=src%2Fhardware%2Fnorma-dmm%2Fprotocol.c;h=d6733b2f961e76ff3a53d43341bc84255194e61f;hb=ce4bd05256a891d45b0013c33cdd9f2597c3bc80;hp=522d88a1749451c62fc1f0d9f527e656e1f7eaa5;hpb=32950cc071715efae178aac92e7975c8ed185fd1;p=libsigrok.git diff --git a/src/hardware/norma-dmm/protocol.c b/src/hardware/norma-dmm/protocol.c index 522d88a1..d6733b2f 100644 --- a/src/hardware/norma-dmm/protocol.c +++ b/src/hardware/norma-dmm/protocol.c @@ -48,9 +48,8 @@ static int nma_send_req(const struct sr_dev_inst *sdi, int req, char *params) devc->last_req = req; devc->last_req_pending = TRUE; - if (serial_write(serial, buf, len) == -1) { - sr_err("Unable to send request: %d %s.", - errno, strerror(errno)); + if (serial_write_blocking(serial, buf, len, 0) < 0) { + sr_err("Unable to send request."); devc->last_req_pending = FALSE; return SR_ERR; }