From: Uwe Hermann Date: Sat, 15 Jun 2019 13:54:48 +0000 (+0200) Subject: serial-lcr: Replace duplicated std_session_send_frame_end(). X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=92499a9c78b63e6a93d67de1883180d40fee7739;p=libsigrok.git serial-lcr: Replace duplicated std_session_send_frame_end(). --- diff --git a/src/hardware/serial-lcr/protocol.c b/src/hardware/serial-lcr/protocol.c index ccf89747..64576972 100644 --- a/src/hardware/serial-lcr/protocol.c +++ b/src/hardware/serial-lcr/protocol.c @@ -55,14 +55,6 @@ static void send_frame_start(struct sr_dev_inst *sdi) sr_session_send(sdi, &packet); } -static void send_frame_end(struct sr_dev_inst *sdi) -{ - struct sr_datafeed_packet packet; - - packet.type = SR_DF_FRAME_END; - sr_session_send(sdi, &packet); -} - static int handle_packet(struct sr_dev_inst *sdi, const uint8_t *pkt) { struct dev_context *devc; @@ -106,7 +98,7 @@ static int handle_packet(struct sr_dev_inst *sdi, const uint8_t *pkt) g_slist_free(analog.meaning->channels); } if (frame) { - send_frame_end(sdi); + std_session_send_frame_end(sdi); sr_sw_limits_update_frames_read(&devc->limits, 1); }