]> sigrok.org Git - libsigrok.git/blobdiff - src/hardware/atten-pps3xxx/protocol.c
atten-pps3xxx: Use serial_timeout().
[libsigrok.git] / src / hardware / atten-pps3xxx / protocol.c
index 98838b65bbe05a2ba00b4018f06ded7a8f5a3019..e7d9d810c1c6dbfc2e5bf410192ce898f01d135c 100644 (file)
@@ -88,8 +88,7 @@ SR_PRIV void send_packet(const struct sr_dev_inst *sdi, uint8_t *packet)
 
        devc = sdi->priv;
        serial = sdi->conn;
-       if (serial_write_blocking(serial, packet, PACKET_SIZE,
-                       devc->byte_delay_ms * PACKET_SIZE + 1) < PACKET_SIZE)
+       if (serial_write_blocking(serial, packet, PACKET_SIZE, devc->delay_ms) < PACKET_SIZE)
                sr_dbg("Failed to send packet.");
        dump_packet("sent", packet);
 }