소스 검색

[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 년 전
부모
커밋
34e55917e1
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  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");