diff options
author | Alexander Chemeris <Alexander.Chemeris@gmail.com> | 2013-07-14 23:07:31 +0400 |
---|---|---|
committer | Alexander Chemeris <Alexander.Chemeris@gmail.com> | 2013-07-16 07:36:17 +0400 |
commit | 0832c0c34b2746345e06025575ac86a85e8943fe (patch) | |
tree | b5cea5b2c25a601d9cfb075f3219cb6822d88ed9 | |
parent | 9cddd4aa5dbe0ca7c02a2294e720cc3925702e39 (diff) |
Transceiver52M: HACK: Exit transceiver on POWEROFF command.achemeris/poweroff_hack
This hack allows OsmoBTS to correctly restart itself with different parameters.
We assume that transceiver is run as a service and will be restarted on exit.
-rw-r--r-- | Transceiver52M/Transceiver.cpp | 6 |
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) { |