aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Chemeris <Alexander.Chemeris@gmail.com>2016-06-18 11:16:54 +0300
committerTom Tsou <tom.tsou@ettus.com>2016-06-22 14:28:07 -0700
commit19174f581bcfe09e84cbfe60d7b3240b9c56989c (patch)
tree47d2b2fa0e81e4f2b1d5eda0b453fff212505cd4
parent1ba69e7762327b565b222b9920728de7d3910d40 (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. Signed-off-by: Tom Tsou <tom.tsou@ettus.com>
-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;