瀏覽代碼

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

8009 2 年之前
父節點
當前提交
21a64091f9
共有 1 個文件被更改,包括 1 次插入0 次删除
  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