X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=src%2Fhardware%2Fserial-lcr%2Fprotocol.c;h=f0e997317de3d9d4fcabe11f56eb412ddf80243f;hb=50bc52f3a6102ad687c8abe11cf1e39ab44b1e6a;hp=e7b2612f56661ed0976f6d4cacc4a2374e740d78;hpb=cb5cd1538f5dc064a4799f0bd985e1015bdb9238;p=libsigrok.git diff --git a/src/hardware/serial-lcr/protocol.c b/src/hardware/serial-lcr/protocol.c index e7b2612f..f0e99731 100644 --- a/src/hardware/serial-lcr/protocol.c +++ b/src/hardware/serial-lcr/protocol.c @@ -31,7 +31,6 @@ static void send_frame_start(struct sr_dev_inst *sdi) struct lcr_parse_info *info; uint64_t freq; const char *model; - struct sr_datafeed_packet packet; devc = sdi->priv; info = &devc->parse_info; @@ -51,8 +50,7 @@ static void send_frame_start(struct sr_dev_inst *sdi) } /* Data is about to get sent. Start a new frame. */ - packet.type = SR_DF_FRAME_BEGIN; - sr_session_send(sdi, &packet); + std_session_send_df_frame_begin(sdi); } static int handle_packet(struct sr_dev_inst *sdi, const uint8_t *pkt) @@ -98,7 +96,7 @@ static int handle_packet(struct sr_dev_inst *sdi, const uint8_t *pkt) g_slist_free(analog.meaning->channels); } if (frame) { - std_session_send_frame_end(sdi); + std_session_send_df_frame_end(sdi); sr_sw_limits_update_frames_read(&devc->limits, 1); }