aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Chemeris <Alexander.Chemeris@gmail.com>2016-06-18 11:16:54 +0300
committerAlexander Chemeris <Alexander.Chemeris@gmail.com>2016-06-18 15:49:21 +0300
commita057c7d367ed82fe85f543a960584257dedf2317 (patch)
tree880c42d053e81f46cdd4cf2e359d76ea19945eb2
parent2ad7101d44abdd16495a466d9326568d071151a0 (diff)
radioInterface: Initialize power scale with a meaningful default.
Right now if you forget to send "POWER" control command, osmo-trx will transmitt zeros. This is counter-intuitive and I've spent several hours debugging this "issue". The issue may happen easily, because osmo-bts doesn't send "POWER" command if there is no "power" setting in the configuration file. Given that "POWER" command actually sets attenuation, it's percieved as optional and in absence of it should default to "POWER 0" (no attenuation), which translates to power scale being 1.0.
-rw-r--r--Transceiver52M/radioInterface.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/Transceiver52M/radioInterface.cpp b/Transceiver52M/radioInterface.cpp
index 7256b9b..b719c94 100644
--- a/Transceiver52M/radioInterface.cpp
+++ b/Transceiver52M/radioInterface.cpp
@@ -70,6 +70,8 @@ bool RadioInterface::init(int type)
convertSendBuffer[i] = new short[sendBuffer[i]->size() * 2];
convertRecvBuffer[i] = new short[recvBuffer[i]->size() * 2];
+
+ powerScaling[i] = 1.0;
}
sendCursor = 0;