Commit 65bad0f5 authored by heshanyun's avatar heshanyun

fix cppcheck warning

parent 8c9753ca
...@@ -169,9 +169,10 @@ rx_sdu(const module_id_t enb_mod_idP, ...@@ -169,9 +169,10 @@ rx_sdu(const module_id_t enb_mod_idP,
*/ */
UE_scheduling_control->ta_update_f = ((double)UE_scheduling_control->ta_update_f * 3 + (double)timing_advance) / 4; UE_scheduling_control->ta_update_f = ((double)UE_scheduling_control->ta_update_f * 3 + (double)timing_advance) / 4;
UE_scheduling_control->ta_update = (int)UE_scheduling_control->ta_update_f; UE_scheduling_control->ta_update = (int)UE_scheduling_control->ta_update_f;
UE_scheduling_control->pusch_snr[CC_idP] = (5 * ul_cqi - 640) / 10; int tmp_snr = (5 * ul_cqi - 640) / 10;
UE_scheduling_control->pusch_snr[CC_idP] = tmp_snr;
if(UE_scheduling_control->pusch_snr[CC_idP] > 0 || UE_scheduling_control->pusch_snr[CC_idP] < 63) { if(tmp_snr > 0 && tmp_snr < 63) {
double snr_filter_tpc=0.7; double snr_filter_tpc=0.7;
int snr_thres_tpc=30; int snr_thres_tpc=30;
int diff = UE_scheduling_control->pusch_snr_avg[CC_idP] - UE_scheduling_control->pusch_snr[CC_idP]; int diff = UE_scheduling_control->pusch_snr_avg[CC_idP] - UE_scheduling_control->pusch_snr[CC_idP];
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment