]> sigrok.org Git - libsigrok.git/commitdiff
serial-lcr: Replace duplicated std_session_send_frame_end().
authorUwe Hermann <redacted>
Sat, 15 Jun 2019 13:54:48 +0000 (15:54 +0200)
committerUwe Hermann <redacted>
Sat, 15 Jun 2019 13:54:48 +0000 (15:54 +0200)
src/hardware/serial-lcr/protocol.c

index ccf89747cbabccb1257130b668b4fb0787d15266..645769724bb1a4b8d4e81d6ab1a60aae873867ef 100644 (file)
@@ -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);
        }