X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=src%2Fhardware%2Fatten-pps3xxx%2Fprotocol.c;h=e7d9d810c1c6dbfc2e5bf410192ce898f01d135c;hb=2eb1612d463e9232af437d9a6c1b3897da2367e9;hp=98838b65bbe05a2ba00b4018f06ded7a8f5a3019;hpb=c5cfc735e50adc53e073355e5521b1c79266441e;p=libsigrok.git diff --git a/src/hardware/atten-pps3xxx/protocol.c b/src/hardware/atten-pps3xxx/protocol.c index 98838b65..e7d9d810 100644 --- a/src/hardware/atten-pps3xxx/protocol.c +++ b/src/hardware/atten-pps3xxx/protocol.c @@ -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); }