X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=src%2Fhardware%2Frdtech-tc%2Fprotocol.h;h=4692ec4022f004fe223abba239050041ec21c486;hb=63f46e3e6f1b3b0a20a1da45ad10a1cd0a8937ab;hp=963c7765623bf654514a7c273660b5022da341f4;hpb=cae33a58743e408a602771d6924ee8c271326f47;p=libsigrok.git diff --git a/src/hardware/rdtech-tc/protocol.h b/src/hardware/rdtech-tc/protocol.h index 963c7765..4692ec40 100644 --- a/src/hardware/rdtech-tc/protocol.h +++ b/src/hardware/rdtech-tc/protocol.h @@ -37,13 +37,12 @@ struct dev_context { struct rdtech_dev_info dev_info; const struct binary_analog_channel *channels; struct sr_sw_limits limits; - uint8_t buf[RDTECH_TC_BUFSIZE]; - int buflen; + size_t buflen; int64_t cmd_sent_at; }; -SR_PRIV int rdtech_tc_probe(struct sr_serial_dev_inst *serial, struct dev_context *devc); +SR_PRIV int rdtech_tc_probe(struct sr_serial_dev_inst *serial, struct dev_context *devc); SR_PRIV int rdtech_tc_receive_data(int fd, int revents, void *cb_data); SR_PRIV int rdtech_tc_poll(const struct sr_dev_inst *sdi);