|
@@ -3194,6 +3194,18 @@ int Initialization(uint8_t gun_index)
|
|
|
|
|
|
ShmCharger->gun_info[gun_index].isOperactive = DB_Get_Operactive(localDb, gun_index);
|
|
|
ShmCharger->gun_info[gun_index].Ptb_Meter_Parameters.PtbMeterPermissionStatus = DB_Get_Meter_Permission(localDb, gun_index);
|
|
|
+
|
|
|
+
|
|
|
+ if(ShmCharger->isCcsEnable == ON)
|
|
|
+ {
|
|
|
+ system("echo 1 > /sys/class/gpio/gpio115/value");
|
|
|
+ DEBUG_INFO("QCA7000: Power on. \n");
|
|
|
+ }
|
|
|
+ else
|
|
|
+ {
|
|
|
+ system("echo 0 > /sys/class/gpio/gpio115/value");
|
|
|
+ DEBUG_INFO("QCA7000: Power off. \n");
|
|
|
+ }
|
|
|
|
|
|
return result;
|
|
|
}
|
|
@@ -6404,12 +6416,6 @@ int main(void)
|
|
|
|
|
|
if(ShmSysConfigAndInfo->SysConfig.ModelName[3] == 'P')
|
|
|
refreshStartTimer(&startTime[gun_index][TMR_IDX_PTB_METER_SEND]);
|
|
|
-
|
|
|
-
|
|
|
- if(ShmCharger->isCcsEnable == ON)
|
|
|
- system("echo 1 > /sys/class/gpio/gpio115/value");
|
|
|
- else
|
|
|
- system("echo 0 > /sys/class/gpio/gpio115/value");
|
|
|
}
|
|
|
|
|
|
break;
|