aboutsummaryrefslogtreecommitdiffstats
path: root/Transceiver52M/osmo-trx.cpp
diff options
context:
space:
mode:
authorAlexander Chemeris <Alexander.Chemeris@gmail.com>2015-05-24 18:56:51 -0400
committerAlexander Chemeris <Alexander.Chemeris@gmail.com>2015-05-24 20:35:13 -0400
commitf5fd578d6097c295192840e846a8e4eca5cef5d2 (patch)
tree4698c6745d84ef90ec28fd22cd62db1729ca44b6 /Transceiver52M/osmo-trx.cpp
parent57ef87d061c7e208c97635ad495f7431ec2aee9b (diff)
osmo-trx: Fix random filler command line option.
Filler types was of "bool" type, which prevented it from taking values greter than 1. And RAND filler type has integer value of 2, which was casted to 1 on assigning, which led to a normal filler table being used instead of the RAND one.
Diffstat (limited to 'Transceiver52M/osmo-trx.cpp')
-rw-r--r--Transceiver52M/osmo-trx.cpp14
1 files changed, 12 insertions, 2 deletions
diff --git a/Transceiver52M/osmo-trx.cpp b/Transceiver52M/osmo-trx.cpp
index b121e48..3f562ba 100644
--- a/Transceiver52M/osmo-trx.cpp
+++ b/Transceiver52M/osmo-trx.cpp
@@ -67,7 +67,7 @@ struct trx_config {
unsigned chans;
unsigned rtsc;
bool extref;
- bool filler;
+ Transceiver::FillerType filler;
bool diversity;
double offset;
};
@@ -160,8 +160,18 @@ bool trx_setup_config(struct trx_config *config)
config->chans = 2;
refstr = config->extref ? "Enabled" : "Disabled";
- fillstr = config->filler ? "Enabled" : "Disabled";
divstr = config->diversity ? "Enabled" : "Disabled";
+ switch (config->filler) {
+ case Transceiver::FILLER_DUMMY:
+ fillstr = "Dummy bursts";
+ break;
+ case Transceiver::FILLER_ZERO:
+ fillstr = "Disabled";
+ break;
+ case Transceiver::FILLER_RAND:
+ fillstr = "Normal busrts with random payload";
+ break;
+ }
std::ostringstream ost("");
ost << "Config Settings" << std::endl;