X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=src%2Fhardware%2Fhung-chang-dso-2100%2Fprotocol.c;h=69efb14d3c332b125334490b4ebc901ed25794be;hb=23669c3df33a3ea884afabf4b7a8cd6fe4a75824;hp=160e5a0c63f1de492d9b45eb3b86f5c1837f51d9;hpb=d9251a2c9f1ca4380c27240ccca90c9f9ed46d3f;p=libsigrok.git diff --git a/src/hardware/hung-chang-dso-2100/protocol.c b/src/hardware/hung-chang-dso-2100/protocol.c index 160e5a0c..69efb14d 100644 --- a/src/hardware/hung-chang-dso-2100/protocol.c +++ b/src/hardware/hung-chang-dso-2100/protocol.c @@ -420,7 +420,7 @@ static int read_subframe(const struct sr_dev_inst *sdi, uint8_t *buf) SR_PRIV int hung_chang_dso_2100_poll(int fd, int revents, void *cb_data) { struct sr_datafeed_packet packet = { .type = SR_DF_FRAME_BEGIN }; - const struct sr_dev_inst *sdi; + struct sr_dev_inst *sdi; struct dev_context *devc; uint8_t state, buf[1000]; @@ -464,7 +464,7 @@ SR_PRIV int hung_chang_dso_2100_poll(int fd, int revents, void *cb_data) sr_session_send(sdi, &packet); if (++devc->frame >= devc->frame_limit) - hung_chang_dso_2100_dev_acquisition_stop(sdi); + sr_dev_acquisition_stop(sdi); else hung_chang_dso_2100_move_to(sdi, 0x21);