X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=src%2Fhardware%2Fbrymen-bm86x%2Fapi.c;h=d252208dc7272d14f377802eb0d53f88a405f601;hb=3be42bc22f8b36599a448273c12a76d3e0f7a940;hp=b2fae5548aad624eedff2db0388a24edd7585c2d;hpb=dd7a4a71caf4a0c0a7d2a24b780cbdffd6602621;p=libsigrok.git diff --git a/src/hardware/brymen-bm86x/api.c b/src/hardware/brymen-bm86x/api.c index b2fae554..d252208d 100644 --- a/src/hardware/brymen-bm86x/api.c +++ b/src/hardware/brymen-bm86x/api.c @@ -17,6 +17,7 @@ * along with this program. If not, see . */ +#include #include "protocol.h" #define BRYMEN_BC86X "0820.0001" @@ -272,16 +273,12 @@ static int dev_acquisition_start(const struct sr_dev_inst *sdi, static int dev_acquisition_stop(struct sr_dev_inst *sdi, void *cb_data) { - struct sr_datafeed_packet packet; - (void)cb_data; if (sdi->status != SR_ST_ACTIVE) return SR_ERR_DEV_CLOSED; - /* Send end packet to the session bus. */ - packet.type = SR_DF_END; - sr_session_send(sdi, &packet); + std_session_send_df_end(sdi, LOG_PREFIX); sr_session_source_remove(sdi->session, -1);