Browse Source

[Bugfix][AW-CCS]
2022-03-16 / Eason Yang
Action
1. Bugfix: More logic for distinguishing CHARGING_MODE_SOCKETE, CHARGING_MODE_BS, or CHARGING_MODE_HLC.

File
1. main.c
Action 1

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

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

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

@@ -6212,7 +6212,8 @@ int main(void)
 						}*/
 					}
 
-					if((ShmSysConfigAndInfo->SysInfo.AcChargingData[gun_index].PilotState == CP_STATE_A))
+					// If CP state is A and charing mode is not socket e.
+					if((ShmSysConfigAndInfo->SysInfo.AcChargingData[gun_index].PilotState == CP_STATE_A) && (ShmCharger->gun_info[gun_index].chargingMode != CHARGING_MODE_SOCKETE))
 					{
 						ShmCharger->gun_info[gun_index].isGunUnpluggedBefore = YES;
 						DEBUG_INFO("The charging gun is unplugged under charging mode. \n");