Transceiver52M: HACK: Exit transceiver on POWEROFF command.

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.
This commit is contained in:
Alexander Chemeris 2013-07-14 23:07:31 +04:00
parent 9cddd4aa5d
commit 0832c0c34b
1 changed files with 6 additions and 0 deletions

View File

@ -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) {