|
@@ -4931,7 +4931,7 @@ int main(void)
|
|
|
* TODO:
|
|
|
* 1. Power saving logic
|
|
|
*/
|
|
|
- if((ShmSysConfigAndInfo->SysInfo.AcChargingData[gun_index].PilotState == CP_STATE_A) || (ShmCharger->gun_info[gun_index].primaryMcuState.socket_e.isSocketEPinOn == OFF))
|
|
|
+ if((ShmSysConfigAndInfo->SysInfo.AcChargingData[gun_index].PilotState == CP_STATE_A) && (ShmCharger->gun_info[gun_index].primaryMcuState.socket_e.isSocketEPinOn == OFF))
|
|
|
{
|
|
|
ftime(&startTime[gun_index][TMR_IDX_POWERSAVING_STATE_B]);
|
|
|
}
|
|
@@ -6053,8 +6053,6 @@ int main(void)
|
|
|
|
|
|
getDateTimeString((char*)ShmSysConfigAndInfo->SysInfo.AcChargingData[gun_index].StopDateTime);
|
|
|
ShmCharger->gun_info[gun_index].resultAuthorization = DEFAULT_RFID;
|
|
|
-
|
|
|
- sleep(3);
|
|
|
}
|
|
|
|
|
|
ftime(&endChargingTime[gun_index]);
|