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:
parent
9cddd4aa5d
commit
0832c0c34b
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue