]> sigrok.org Git - libsigrok.git/blobdiff - src/hardware/atten-pps3xxx/protocol.c
atten-pps3xxx: Make serial write call block.
[libsigrok.git] / src / hardware / atten-pps3xxx / protocol.c
index ed4d5505e6a17d7ef8edf469cd8192e20b987e07..66ecb7a28ff2cde835de7db59c122e3685283963 100644 (file)
@@ -86,7 +86,7 @@ SR_PRIV void send_packet(const struct sr_dev_inst *sdi, uint8_t *packet)
        struct sr_serial_dev_inst *serial;
 
        serial = sdi->conn;
-       if (serial_write(serial, packet, PACKET_SIZE) == -1)
+       if (serial_write_blocking(serial, packet, PACKET_SIZE) == -1)
                sr_dbg("Failed to send packet: %s", strerror(errno));
        dump_packet("sent", packet);
 }