|
@@ -4536,6 +4536,20 @@ int main(void)
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+
|
|
|
+ if(DiffTimebWithNow(startTime[gun_index][TMR_IDX_PROFILE_PREPARE]) > TIMEOUT_SPEC_PROFILE_PREPARE)
|
|
|
+ {
|
|
|
+ if(!ocpp_get_profile_conf(gun_index))
|
|
|
+ {
|
|
|
+ ocpp_set_profile_req(gun_index, ON);
|
|
|
+ ftime(&startTime[gun_index][TMR_IDX_PROFILE_PREPARE]);
|
|
|
+ }
|
|
|
+ else
|
|
|
+ {
|
|
|
+ ocpp_set_profile_conf(gun_index, OFF);
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
|
|
|
checkChargingProfileLimit(gun_index);
|
|
|
if(ShmCharger->gun_info[gun_index].targetCurrent > 0)
|