Pārlūkot izejas kodu

Merge remote-tracking branch 'origin/AW-CCS'

FolusWen 3 gadi atpakaļ
vecāks
revīzija
e618e3e91e
1 mainītis faili ar 2 papildinājumiem un 1 dzēšanām
  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");