139,9 → 139,21 |
{ |
Capacity.UsedCapacity++; // we have one mAh more |
SubCounter -= SUB_COUNTER_LIMIT; // keep the remaining sub part |
Capacity.RemainCapacity=(EE_Parameter.UserParam1*100)-Capacity.UsedCapacity; //Added by metro |
if((Capacity.RemainCapacity<=500)&&(Capacity.RemainCapacity%100==0)&&(EE_Parameter.UserParam1!=0)) beeptime = 10000; |
|
//Added by metro |
Capacity.RemainCapacity=(EE_Parameter.UserParam1*100)-Capacity.UsedCapacity; |
if((Capacity.RemainCapacity<=0)&&(Capacity.RemainCapacity%100==0)&&(EE_Parameter.UserParam1!=0)) |
{ |
FC_StatusFlags |= FC_STATUS_LOWBAT; |
if(BeepMuster == 0xffff) |
{ |
beeptime = (abs(Capacity.RemainCapacity/100)+1)*2000; |
BeepMuster = 0x0400; |
} |
} |
else if(!beeptime) FC_StatusFlags &= ~FC_STATUS_LOWBAT; |
//End Added by metro |
} |
|
|
} // EOF check delay update timer |