From 51c55204723d07f4116f97645fb86554c0169ec1 Mon Sep 17 00:00:00 2001 From: Dhanya Thattil Date: Mon, 6 Jan 2020 11:51:19 +0100 Subject: [PATCH] unregistering call back, detangling receiver streaming from callback --- slsDetectorGui/src/qDrawPlot.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/slsDetectorGui/src/qDrawPlot.cpp b/slsDetectorGui/src/qDrawPlot.cpp index a121319e2..9ea58f496 100644 --- a/slsDetectorGui/src/qDrawPlot.cpp +++ b/slsDetectorGui/src/qDrawPlot.cpp @@ -373,8 +373,8 @@ void qDrawPlot::SetupWidgetWindow(){ // callbacks // Setting the callback function to get data from detector class - if (setReceiverOnline() == slsDetectorDefs::ONLINE_FLAG) { - enableDataStreamingFromReceiver(1); + if (myDet->setReceiverOnline() == slsDetectorDefs::ONLINE_FLAG) { + myDet->enableDataStreamingFromReceiver(1); } myDet->registerDataCallback(&(GetDataCallBack),this); // also enables data streaming in client and receiver (if receiver exists) //Setting the callback function to alert when acquisition finished from detector class