From 969e0e211d6da9774308feba5b9bf88dfdf5232b Mon Sep 17 00:00:00 2001 From: Ismael Gomez Date: Tue, 3 Dec 2019 09:50:44 +0100 Subject: [PATCH] Addressed comments --- lib/src/phy/agc/agc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/src/phy/agc/agc.c b/lib/src/phy/agc/agc.c index 644823645..b6c7ca903 100644 --- a/lib/src/phy/agc/agc.c +++ b/lib/src/phy/agc/agc.c @@ -115,7 +115,7 @@ float srslte_agc_get_gain(srslte_agc_t *q) { } void srslte_agc_set_gain(srslte_agc_t *q, float init_gain_value_db) { - q->gain = pow(10, init_gain_value_db/10); + q->gain = srslte_convert_dB_to_power(init_gain_value_db); } void srslte_agc_lock(srslte_agc_t *q, bool enable) {