mirror of
https://gitea.osmocom.org/cellular-infrastructure/osmo-trx.git
synced 2025-11-03 05:33:16 +00:00
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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user