From: Martin Ling Date: Sun, 21 Sep 2014 18:03:26 +0000 (+0100) Subject: motech-lps-30x: Make serial write call block. X-Git-Tag: libsigrok-0.4.0~950 X-Git-Url: https://sigrok.org/gitweb/?a=commitdiff_plain;h=856dccb7a6af99dbc4955053daca1b219bd6931d;p=libsigrok.git motech-lps-30x: Make serial write call block. This call was previously explicitly nonblocking, but has no partial write handling. It sends a short packet so should be OK to block, most likely the output buffer will be empty anyway. --- diff --git a/src/hardware/motech-lps-30x/api.c b/src/hardware/motech-lps-30x/api.c index 1304e1c5..d031bee3 100644 --- a/src/hardware/motech-lps-30x/api.c +++ b/src/hardware/motech-lps-30x/api.c @@ -146,7 +146,7 @@ SR_PRIV int lps_send_va(struct sr_serial_dev_inst *serial, const char* fmt, va_l sr_spew("lps_send_va: \"%s\"", buf); - retc = serial_write_nonblocking(serial, buf, strlen(buf)); + retc = serial_write_blocking(serial, buf, strlen(buf)); if (retc < 0) return SR_ERR;