Browse Source

[Improve][AW-CCS][main.c]
2022-11-25 / EASON YANG
Action:
1. Improve: SYS_MODE_PREPARING mode. Included controlling pilot detection for state E and state F.

File:
1. main.c
Action 1

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

8009 2 years ago
parent
commit
2de81e75f9
1 changed files with 3 additions and 1 deletions
  1. 3 1
      EVSE/Projects/AW-CCS/Apps/main.c

+ 3 - 1
EVSE/Projects/AW-CCS/Apps/main.c

@@ -6893,7 +6893,9 @@ int main(void)
 
 					// If control pilot detect Bx, skip watch dog time out.
 					if((ShmSysConfigAndInfo->SysInfo.AcChargingData[gun_index].PilotState == CP_STATE_B) ||
-						(ShmSysConfigAndInfo->SysInfo.AcChargingData[gun_index].PilotState == CP_STATE_C))
+					   (ShmSysConfigAndInfo->SysInfo.AcChargingData[gun_index].PilotState == CP_STATE_C) ||
+					   (ShmSysConfigAndInfo->SysInfo.AcChargingData[gun_index].PilotState == CP_STATE_E) ||
+					   (ShmSysConfigAndInfo->SysInfo.AcChargingData[gun_index].PilotState == CP_STATE_F))
 					{
 						ShmCharger->gun_info[gun_index].isGunPlugged = YES;
 						ShmCharger->gun_info[gun_index].isGunUnpluggedBefore = NO;