X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=src%2Fhardware%2Fatten-pps3xxx%2Fprotocol.c;h=e7d9d810c1c6dbfc2e5bf410192ce898f01d135c;hb=d74d30bb14b9cb240e244caff7179926c72630e6;hp=95137d2e9a8164e86041d5184129ab749173c75f;hpb=081c214eace0c9088cbcbd9a3d448f6fac5e98f4;p=libsigrok.git diff --git a/src/hardware/atten-pps3xxx/protocol.c b/src/hardware/atten-pps3xxx/protocol.c index 95137d2e..e7d9d810 100644 --- a/src/hardware/atten-pps3xxx/protocol.c +++ b/src/hardware/atten-pps3xxx/protocol.c @@ -83,10 +83,12 @@ static void handle_packet(const struct sr_dev_inst *sdi) SR_PRIV void send_packet(const struct sr_dev_inst *sdi, uint8_t *packet) { + struct dev_context *devc; struct sr_serial_dev_inst *serial; + devc = sdi->priv; serial = sdi->conn; - if (serial_write_blocking(serial, packet, PACKET_SIZE) < 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); }