X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2Fhardware%2Fsaleae-logic16%2Fprotocol.c;h=d75be36dda6c2d00d4398f4dc3cb23a7755cdc37;hb=3be42bc22f8b36599a448273c12a76d3e0f7a940;hp=5566b85972f64d890543e7764e20f5442970af21;hpb=7fb90f94d62597224509472906fd8a33c3f3a1d2;p=libsigrok.git diff --git a/src/hardware/saleae-logic16/protocol.c b/src/hardware/saleae-logic16/protocol.c index 5566b859..d75be36d 100644 --- a/src/hardware/saleae-logic16/protocol.c +++ b/src/hardware/saleae-logic16/protocol.c @@ -757,14 +757,11 @@ SR_PRIV int logic16_init_device(const struct sr_dev_inst *sdi) static void finish_acquisition(struct sr_dev_inst *sdi) { - struct sr_datafeed_packet packet; struct dev_context *devc; devc = sdi->priv; - /* Terminate session. */ - packet.type = SR_DF_END; - sr_session_send(devc->cb_data, &packet); + std_session_send_df_end(sdi, LOG_PREFIX); /* Remove fds from polling. */ usb_source_remove(sdi->session, devc->ctx);