Prechádzať zdrojové kódy

[Add][AX80][main]

2022.11.01 / Folus Wen

Actions:
1. QCA7000 power off when system status is SYS_MODE_CHARGING or SYS_MODE_TERMINATING or SYS_MODE_COMPLETE and mode is not HLC.

Files:
1. As follow commit history

Image version: D0.00.XX.XXXX.XX
Image checksum: XXXXXXXX

Hardware PWB P/N : XXXXXXX
Hardware Version : XXXXXXX
Folus Wen 2 rokov pred
rodič
commit
5c27e30cab

BIN
EVSE/GPL/uecho-1.2.3/examples - 捷徑.lnk


+ 2 - 1
EVSE/Projects/AX80/Apps/main.c

@@ -5364,7 +5364,8 @@ int main(void)
 				//==========================================
 				if(ShmSysConfigAndInfo->SysInfo.AcChargingData[gun_index].SystemStatus > SYS_MODE_BOOTING)
 				{
-					if(ShmSysConfigAndInfo->SysInfo.AcChargingData[gun_index].PilotState == CP_STATE_A)
+					if((ShmSysConfigAndInfo->SysInfo.AcChargingData[gun_index].PilotState == CP_STATE_A) ||
+					   (((ShmSysConfigAndInfo->SysInfo.AcChargingData[gun_index].SystemStatus == SYS_MODE_CHARGING) || (ShmSysConfigAndInfo->SysInfo.AcChargingData[gun_index].SystemStatus == SYS_MODE_TERMINATING) || (ShmSysConfigAndInfo->SysInfo.AcChargingData[gun_index].SystemStatus == SYS_MODE_COMPLETE)) && (ShmCharger->gun_info[gun_index].chargingMode != CHARGING_MODE_HLC)))
 					{
 						ShmCharger->gun_info[gun_index].isGetEvCCIDTimeout = OFF;
 						refreshStartTimer(&startTime[gun_index][TMR_IDX_POWERSAVING_STATE_B]);