]> sigrok.org Git - sigrok-cli.git/commitdiff
cli: Use sr_session_stop() instead of sr_session_halt()
authorLars-Peter Clausen <redacted>
Thu, 5 Jul 2012 19:15:10 +0000 (21:15 +0200)
committerBert Vermeulen <redacted>
Wed, 11 Jul 2012 21:28:35 +0000 (23:28 +0200)
Use sr_session_stop() instead of the deprecated sr_session_halt().

Signed-off-by: Lars-Peter Clausen <redacted>
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)