瀏覽代碼

[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");