|
@@ -506,7 +506,7 @@ void Bluecell_AttenInitialize(){
|
506
|
506
|
bluecell_Prevdatastatus.ATT_DL4_L = bluecell_Currdatastatus.ATT_DL4_L;
|
507
|
507
|
bluecell_Prevdatastatus.bluecell_User_DL4_H = bluecell_Currdatastatus.bluecell_User_DL4_H;
|
508
|
508
|
bluecell_Prevdatastatus.bluecell_User_DL4_L = bluecell_Currdatastatus.bluecell_User_DL4_L;
|
509
|
|
- MBIC_Val = bluecell_Currdatastatus.ATT_DL4_H << 8 | bluecell_Currdatastatus.ATT_DL4_H;
|
|
509
|
+ MBIC_Val = bluecell_Currdatastatus.ATT_DL4_H << 8 | bluecell_Currdatastatus.ATT_DL4_L;
|
510
|
510
|
MBIC_UserVal = bluecell_Currdatastatus.bluecell_User_DL4_H << 8 | bluecell_Currdatastatus.bluecell_User_DL4_L;
|
511
|
511
|
val = MBIC_DL_PE43711_Calc(&Att_DL4.Table_0_0_dBm, // Table Offset
|
512
|
512
|
MBIC_Val,
|
|
@@ -663,7 +663,7 @@ void CompareAttenData(BLUESTATUS_st Curr,BLUESTATUS_st Prev){
|
663
|
663
|
bluecell_Prevdatastatus.bluecell_User_DL4_L = bluecell_Currdatastatus.bluecell_User_DL4_L;
|
664
|
664
|
MBIC_Val = (Curr.ATT_DL4_H << 8 | Curr.ATT_DL4_L);
|
665
|
665
|
printf("\r\nCurr.ATT_DL4_H : %x \rCurr.ATT_DL4_L : %x \r\n",Curr.ATT_DL4_H,Curr.ATT_DL4_L);
|
666
|
|
- MBIC_UserVal = (((Curr.bluecell_User_DL4_H & 0x00FF)<< 8) | Curr.bluecell_User_DL4_L);
|
|
666
|
+ MBIC_UserVal = Curr.bluecell_User_DL4_H << 8 | Curr.bluecell_User_DL4_L;
|
667
|
667
|
printf("\r\nCurr.bluecell_User_DL4_H : %x \rCurr.bluecell_User_DL4_L : %x \r\n",Curr.bluecell_User_DL4_H,Curr.bluecell_User_DL4_L);
|
668
|
668
|
printf("MBIC_UserVal : %x \r\n",MBIC_UserVal); // 2
|
669
|
669
|
val = MBIC_DL_PE43711_Calc(&Att_DL4.Table_0_0_dBm,// Table Offset
|