Use sr_session_stop() instead of the deprecated sr_session_halt().

Signed-off-by: Lars-Peter Clausen <[email protected]>
---
 sigrok-cli/sigrok-cli.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/sigrok-cli/sigrok-cli.c b/sigrok-cli/sigrok-cli.c
index bce88e4..3a460bf 100644
--- a/sigrok-cli/sigrok-cli.c
+++ b/sigrok-cli/sigrok-cli.c
@@ -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)
-- 
1.7.10


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
sigrok-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sigrok-devel

Reply via email to