Bladeren bron

[Improve][AW-Regular][Module_InternalComm.c]

8009 2 jaren geleden
bovenliggende
commit
21a64091f9
1 gewijzigde bestanden met toevoegingen van 1 en 0 verwijderingen
  1. 1 0
      EVSE/Projects/AW-Regular/Apps/Module_InternalComm.c

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

@@ -2444,6 +2444,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].powerConsumption))
 				{
+					ShmSysConfigAndInfo->SysInfo.AcChargingData[gun_index].PowerConsumption = (ShmCharger->gun_info[gun_index].powerConsumption.power_consumption/100.0);
 					failCount[gun_index] = 0;
 				}
 				else