]> sigrok.org Git - libsigrok.git/blobdiff - src/hardware/atten-pps3xxx/protocol.c
Add a timeout parameter to blocking serial calls.
[libsigrok.git] / src / hardware / atten-pps3xxx / protocol.c
index 95137d2e9a8164e86041d5184129ab749173c75f..0db7e232ad5fe8b880af69dfa44ce64e6079b707 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_blocking(serial, packet, PACKET_SIZE) < PACKET_SIZE)
+       if (serial_write_blocking(serial, packet, PACKET_SIZE, 0) < PACKET_SIZE)
                sr_dbg("Failed to send packet.");
        dump_packet("sent", packet);
 }