瀏覽代碼

[Added][AW-CCS][main.c]
2022-10-25 / EASON YANG
Action:
1. Added: check isCcsEnable under booting mode and open or close qca700 power.

File:
1. main.c
Action 1

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

8009 2 年之前
父節點
當前提交
a4c9c441d2
共有 1 個文件被更改,包括 6 次插入0 次删除
  1. 6 0
      EVSE/Projects/AW-CCS/Apps/main.c

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

@@ -6391,6 +6391,12 @@ int main(void)
 						// Refresh PTB resend timer
 						if(ShmSysConfigAndInfo->SysConfig.ModelName[3] == 'P')
 							refreshStartTimer(&startTime[gun_index][TMR_IDX_PTB_METER_SEND]);
+						
+						// Check is ccs Enable/Disable to open ccs power.
+						if(ShmCharger->isCcsEnable == ON)
+							system("echo 1 > /sys/class/gpio/gpio115/value");
+						else
+							system("echo 0 > /sys/class/gpio/gpio115/value");
 					}
 
 					break;