Browse Source

[Improve][AW-CCS][Module_InternalComm.c]
2022-11-30 / EASON YANG
Action:
1.Improve: Synchronize the total power to the share memory.

File:
1. Module_InternalComm.c
Action 1

FIRMWARE VERSION: B0.63.XX.XXXX.PX

8009 2 years ago
parent
commit
b03937bab0
1 changed files with 1 additions and 0 deletions
  1. 1 0
      EVSE/Projects/AW-CCS/Apps/Module_InternalComm.c

+ 1 - 0
EVSE/Projects/AW-CCS/Apps/Module_InternalComm.c

@@ -2928,6 +2928,7 @@ int main(void)
 				//========================================
 				if(Query_Power_Consumption(Uart1Fd, (gun_index>0?ADDR_AC_PRIMARY_2:ADDR_AC_PRIMARY_1), &ShmCharger->gun_info[gun_index].powerConsumptionTotal, &ShmCharger->gun_info[gun_index].powerConsumption[0], &ShmCharger->gun_info[gun_index].powerConsumption[1], &ShmCharger->gun_info[gun_index].powerConsumption[2]))
 				{
+					ShmSysConfigAndInfo->SysInfo.AcChargingData[gun_index].PowerConsumption = (ShmCharger->gun_info[gun_index].powerConsumptionTotal.power_consumption/10000.0);
 					failCount[gun_index] = 0;
 				}
 				else