X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2Fhardware%2Flecroy-logicstudio%2Fprotocol.c;h=78376a45ef1747c2a5e070edd516c278e803bc1c;hb=9de47e9e712844f46f693915d405a89846e61084;hp=9c825991b69427e6494457608dc3e8494db05cd2;hpb=ff7c7cda93a8457777eda9466c561d62313a9d49;p=libsigrok.git diff --git a/src/hardware/lecroy-logicstudio/protocol.c b/src/hardware/lecroy-logicstudio/protocol.c index 9c825991..78376a45 100644 --- a/src/hardware/lecroy-logicstudio/protocol.c +++ b/src/hardware/lecroy-logicstudio/protocol.c @@ -912,15 +912,13 @@ static void LIBUSB_CALL recv_intr_transfer(struct libusb_transfer *xfer) const struct sr_dev_inst *sdi; struct drv_context *drvc; struct dev_context *devc; - struct sr_datafeed_packet packet; sdi = xfer->user_data; drvc = sdi->driver->context; devc = sdi->priv; if (devc->abort_acquisition) { - packet.type = SR_DF_END; - sr_session_send(sdi, &packet); + std_session_send_df_end(sdi); usb_source_remove(sdi->session, drvc->sr_ctx); return; } @@ -1091,8 +1089,7 @@ static void LIBUSB_CALL recv_bulk_transfer(struct libusb_transfer *xfer) read_offset %= SAMPLE_BUF_SIZE; } - packet.type = SR_DF_END; - sr_session_send(sdi, &packet); + std_session_send_df_end(sdi); } static uint32_t transform_sample_count(struct dev_context *devc,