aboutsummaryrefslogtreecommitdiffstats
path: root/Transceiver52M/radioInterface.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Transceiver52M/radioInterface.cpp')
-rw-r--r--Transceiver52M/radioInterface.cpp11
1 files changed, 10 insertions, 1 deletions
diff --git a/Transceiver52M/radioInterface.cpp b/Transceiver52M/radioInterface.cpp
index 316779f..98af480 100644
--- a/Transceiver52M/radioInterface.cpp
+++ b/Transceiver52M/radioInterface.cpp
@@ -188,10 +188,19 @@ bool RadioInterface::start()
return true;
}
+bool RadioInterface::stop()
+{
+ if (!mOn)
+ return false;
+
+ mOn = false;
+ mRadio->stop();
+}
+
#ifdef USRP1
void *AlignRadioServiceLoopAdapter(RadioInterface *radioInterface)
{
- while (1) {
+ while (radioInterface->on()) {
radioInterface->alignRadio();
pthread_testcancel();
}