]> sigrok.org Git - libsigrok.git/blobdiff - src/hardware/atten-pps3xxx/api.c
atten-pps3xxx: Make serial write call block in scan.
[libsigrok.git] / src / hardware / atten-pps3xxx / api.c
index d901649a20c1434f61eeb5c9033d1b7344db92e4..0d7c33e55a0377180f716b1ee178a2cea0c0bb06 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(serial, packet, PACKET_SIZE) == -1) {
+       if (serial_write_blocking(serial, packet, PACKET_SIZE) == -1) {
                sr_err("Unable to write while probing for hardware: %s",
                                strerror(errno));
                return NULL;