changeset 329:6d27bbc94e3c

l1p_func.c: reconstruction complete, perfect match to original TCS211 object
author Mychaela Falconia <falcon@freecalypso.org>
date Wed, 04 Oct 2017 23:05:33 +0000
parents 2604e9569e31
children ac5dbb553f27
files chipsetsw/layer1/p_cfile/l1p_func.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/chipsetsw/layer1/p_cfile/l1p_func.c	Wed Oct 04 22:50:34 2017 +0000
+++ b/chipsetsw/layer1/p_cfile/l1p_func.c	Wed Oct 04 23:05:33 2017 +0000
@@ -466,11 +466,11 @@
 
     // Get AGC according to the last known IL.
     input_level = l1a_l1s_com.last_input_level[radio_freq_ctrl - l1_config.std.radio_freq_index_offset].input_level;
+    agc     = Cust_get_agc_from_IL(radio_freq_ctrl, input_level >> 1, PWR_ID);
     lna_off = l1a_l1s_com.last_input_level[radio_freq_ctrl - l1_config.std.radio_freq_index_offset].lna_off;
-    agc     = Cust_get_agc_from_IL(radio_freq_ctrl, input_level >> 1, PWR_ID);
     // Memorize the IL and LNA used for AGC setting.
     // Note: the same structure as for TCR meas is used for PC_MEAS_CHAN measurements
-    l1pa_l1ps_com.tcr_freq_list.used_il_lna.il  =  input_level;
+    l1pa_l1ps_com.tcr_freq_list.used_il_lna.il  = l1a_l1s_com.last_input_level[radio_freq_ctrl - l1_config.std.radio_freq_index_offset].input_level;
     l1pa_l1ps_com.tcr_freq_list.used_il_lna.lna = l1a_l1s_com.last_input_level[radio_freq_ctrl - l1_config.std.radio_freq_index_offset].lna_off;