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

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

diff --git a/sigrok-qt/mainwindow.cpp b/sigrok-qt/mainwindow.cpp
index f0ca848..810228f 100644
--- a/sigrok-qt/mainwindow.cpp
+++ b/sigrok-qt/mainwindow.cpp
@@ -501,7 +501,7 @@ void datafeed_in(struct sr_dev *dev, struct 
sr_datafeed_packet *packet)
        case SR_DF_END:
                qDebug("SR_DF_END");
                /* TODO: o */
-               sr_session_halt();
+               sr_session_stop();
                progress->setValue(received_samples); /* FIXME */
                break;
        case SR_DF_TRIGGER:
@@ -645,7 +645,7 @@ void MainWindow::on_action_Get_samples_triggered()
 
        sr_session_run();
 
-       sr_session_halt();
+       sr_session_stop();
        sr_session_destroy();
 
        for (int i = 0; i < getNumChannels(); ++i) {
-- 
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