]> sigrok.org Git - libsigrok.git/blobdiff - src/hardware/atten-pps3xxx/api.c
Add a timeout parameter to blocking serial calls.
[libsigrok.git] / src / hardware / atten-pps3xxx / api.c
index a0f84152405f6725c2af1dc2a7ed48fc818c9e61..24b392ee75a4de74770a2cc12a6dbde711fe9908 100644 (file)
@@ -130,7 +130,7 @@ static GSList *scan(GSList *options, int modelid)
        memset(packet, 0, PACKET_SIZE);
        packet[0] = 0xaa;
        packet[1] = 0xaa;
-       if (serial_write_blocking(serial, packet, PACKET_SIZE) < PACKET_SIZE) {
+       if (serial_write_blocking(serial, packet, PACKET_SIZE, 0) < PACKET_SIZE) {
                sr_err("Unable to write while probing for hardware.");
                return NULL;
        }