浏览代码

2022-02-15 / Eason Yang
Action
1. Bugfix: If socket e pin detected on, setRequest on.

File
1. main.c
Action 1

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

8009 3 年之前
父节点
当前提交
a561da1832
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4 0
      EVSE/Projects/AW-CCS/Apps/main.c

+ 4 - 0
EVSE/Projects/AW-CCS/Apps/main.c

@@ -5998,6 +5998,10 @@ int main(void)
 						refreshStartTimer(&startChargingTime[gun_index]);
 						setChargerMode(gun_index, SYS_MODE_CHARGING);
 					}
+					else if(ShmCharger->gun_info[gun_index].primaryMcuState.socket_e.isSocketEPinOn == ON)
+					{
+						setRequest(gun_index, ON);
+					}
 
 					// Unplug charging gun to Idle mode
 					if((ShmSysConfigAndInfo->SysInfo.AcChargingData[gun_index].PilotState == CP_STATE_A) && (ShmCharger->gun_info[gun_index].isGunPlugged == YES))