From 9c5b9cef94c6720e44edff4cc96e97ec6fe126b8 Mon Sep 17 00:00:00 2001 From: Ismael Gomez Date: Sat, 7 Jul 2018 12:43:50 +0200 Subject: [PATCH] Set initial AGC gain correctly --- lib/src/phy/rf/rf_uhd_imp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/src/phy/rf/rf_uhd_imp.c b/lib/src/phy/rf/rf_uhd_imp.c index dc1bf6415..7fe291497 100644 --- a/lib/src/phy/rf/rf_uhd_imp.c +++ b/lib/src/phy/rf/rf_uhd_imp.c @@ -583,7 +583,7 @@ int rf_uhd_open_multi(char *args, void **h, uint32_t nof_channels) uhd_tx_metadata_make(&handler->tx_md, false, 0, 0, false, false); // Set starting gain to half maximum in case of using AGC - rf_uhd_set_rx_gain(handler, handler->info.max_tx_gain*0.7); + rf_uhd_set_rx_gain(handler, handler->info.max_rx_gain*0.7); #if HAVE_ASYNC_THREAD if (start_async_thread) {