]> sigrok.org Git - sigrok-cli.git/blobdiff - sigrok-cli.c
cli: Use sr_session_stop() instead of sr_session_halt()
[sigrok-cli.git] / sigrok-cli.c
index bce88e4a9acbc12c2c10c957eb05f0eb4ab4212c..3a460bf67763234bd258a0243512bd33b4786c5e 100644 (file)
@@ -485,7 +485,7 @@ static void datafeed_in(struct sr_dev *dev, struct sr_datafeed_packet *packet)
                if (opt_continuous)
                        g_warning("Device stopped after %" PRIu64 " samples.",
                               received_samples);
-               sr_session_halt();
+               sr_session_stop();
                if (outfile && outfile != stdout)
                        fclose(outfile);
                g_free(o);
@@ -576,7 +576,7 @@ static void datafeed_in(struct sr_dev *dev, struct sr_datafeed_packet *packet)
                if (opt_pds) {
                        if (srd_session_send(received_samples, (uint8_t*)filter_out,
                                        filter_out_len) != SRD_OK)
-                               sr_session_halt();
+                               sr_session_stop();
                } else {
                        output_len = 0;
                        if (o->format->data && packet->type == o->format->df_type)