|
@@ -2899,7 +2899,8 @@ float presentChargedEnergyTotal(unsigned char gun_index)
|
|
|
|
|
|
for(int idx=0;idx<ARRAY_SIZE(ShmSysConfigAndInfo->SysInfo.AcChargingData[gun_index].presentChargedEnergyPeriod);idx++)
|
|
|
{
|
|
|
- result += ShmSysConfigAndInfo->SysInfo.AcChargingData[gun_index].presentChargedEnergyPeriod[idx];
|
|
|
+ //result += ShmSysConfigAndInfo->SysInfo.AcChargingData[gun_index].presentChargedEnergyPeriod[idx];
|
|
|
+ result += (((int)(ShmSysConfigAndInfo->SysInfo.AcChargingData[gun_index].presentChargedEnergyPeriod[idx]*1000))/(float)1000);
|
|
|
}
|
|
|
|
|
|
return result;
|