]> sigrok.org Git - libsigrok.git/commitdiff
motech-lps-30x: Make serial write call block.
authorMartin Ling <redacted>
Sun, 21 Sep 2014 18:03:26 +0000 (19:03 +0100)
committerUwe Hermann <redacted>
Wed, 24 Sep 2014 21:30:31 +0000 (23:30 +0200)
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.

src/hardware/motech-lps-30x/api.c

index 1304e1c5d72aba7988728ae5a7833ae0bf2244e0..d031bee3884310a4b685b2d33215305c864f0b57 100644 (file)
@@ -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;