if(UE_mac_inst[module_idP].PHR_reconfigured==1){// upon (re)configuration of the power headroom reporting functionality by upper layers
if(UE_mac_inst[module_idP].PHR_reconfigured==1){// upon (re)configuration of the power headroom reporting functionality by upper layers
UE_mac_inst[module_idP].PHR_reporting_active=1;
UE_mac_inst[module_idP].PHR_reporting_active=1;
UE_mac_inst[module_idP].PHR_reconfigured=0;
UE_mac_inst[module_idP].PHR_reconfigured=0;
}else{
}
#ifdef UE_NR_PHY_DEMO
// NR: Only check Power headroom and update PHR timers every subframe. To check
elseif(isNewTxSubframe)
#else
else
#endif
{
//LOG_D(MAC,"PHR normal operation %d active %d \n", UE_mac_inst[module_idP].scheduling_info.periodicPHR_SF, UE_mac_inst[module_idP].PHR_reporting_active);
//LOG_D(MAC,"PHR normal operation %d active %d \n", UE_mac_inst[module_idP].scheduling_info.periodicPHR_SF, UE_mac_inst[module_idP].PHR_reporting_active);