X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=src%2Fhardware%2Fserial-lcr%2Fprotocol.c;h=f0e997317de3d9d4fcabe11f56eb412ddf80243f;hb=0ccc6f7cdf3ce1a3ac1f9116b1524f2b326dd6be;hp=e5b89dc5dde1f4a3d084dfecc89c6bcde3ec33cd;hpb=7f7702b81bd9051a87fde54983561675329d5dc8;p=libsigrok.git diff --git a/src/hardware/serial-lcr/protocol.c b/src/hardware/serial-lcr/protocol.c index e5b89dc5..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)