Эх сурвалжийг харах

[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 жил өмнө
parent
commit
a4c9c441d2

+ 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;