Bladeren bron

[Improve][NoodoeAX][Module_InternalComm.c]
2022-12-29 / EASON YANG
Action:
1. Improve: Synchronize powerConsumptionTotal -> share memory PowerConsumption.

File:
1. Module_InternalComm.c
Action 1

FIRMWARE VERSION: B0.62.XX.XXXX.NX

8009 2 jaren geleden
bovenliggende
commit
1c190e4965
1 gewijzigde bestanden met toevoegingen van 1 en 0 verwijderingen
  1. 1 0
      EVSE/Projects/NoodoeAX/Apps/Module_InternalComm.c

+ 1 - 0
EVSE/Projects/NoodoeAX/Apps/Module_InternalComm.c

@@ -2923,6 +2923,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