aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Transceiver52M/Transceiver.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/Transceiver52M/Transceiver.cpp b/Transceiver52M/Transceiver.cpp
index 7bcbe14..ea5ca23 100644
--- a/Transceiver52M/Transceiver.cpp
+++ b/Transceiver52M/Transceiver.cpp
@@ -37,6 +37,8 @@
#include "config.h"
#endif
+extern volatile bool gbShutdown;
+
using namespace GSM;
#define USB_LATENCY_INTRVL 10,0
@@ -373,6 +375,10 @@ void Transceiver::driveControl()
mRadioInterface->stop();
mDriveLoop->stop();
+
+ if (mPrimary) {
+ gbShutdown = true;
+ }
}
}
else if (strcmp(command,"POWERON")==0) {