FreeCalypso > hg > tcs211-l1-reconst
changeset 210:7f3182969aac
l1_cust.c: Cust_get_pwr_data() reconstructed
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Wed, 08 Jun 2016 06:47:02 +0000 |
parents | c79dd8f07fc5 |
children | cac3ce96591e |
files | chipsetsw/layer1/cust0/l1_cust.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/chipsetsw/layer1/cust0/l1_cust.c Wed Jun 08 06:40:08 2016 +0000 +++ b/chipsetsw/layer1/cust0/l1_cust.c Wed Jun 08 06:47:02 2016 +0000 @@ -881,7 +881,7 @@ T_TX_TEMP_CAL *pt; pt = rf_band[band].tx.temp; - while ((WORD16)adc.converted[ADC_RFTEMP] > pt->temperature) + while (((WORD16)adc.converted[ADC_RFTEMP] > pt->temperature) && ((pt-rf_band[band].tx.temp) < (RF_TX_CAL_TEMP_SIZE-1))) pt++; #if(ORDER2_TX_TEMP_CAL==1) pwr_data += (txpwr*(pt->a*txpwr + pt->b) + pt->c) / 64; //delta apc = ax^2+bx+c