|
@@ -4846,6 +4846,14 @@ void checkHandshakeCountdown(uint8_t gun_index)
|
|
|
|
|
|
ShmCharger->timeoutSpec.Handshake_Timeout = ((ocpp_get_connection_timeout()) - getDiffSecNow(startTime[gun_index][TMR_IDX_HANDSHAKING]));
|
|
|
|
|
|
+ break;
|
|
|
+ case SYS_MODE_RESERVATION:
|
|
|
+
|
|
|
+ if(ShmCharger->gun_info[ShmCharger->gun_selectd].isHandshakeTimerRefresh == YES)
|
|
|
+ refreshStartTimer(&startTime[0][TMR_IDX_GUN_DETECT]);
|
|
|
+ else
|
|
|
+ ShmCharger->timeoutSpec.Handshake_Timeout = ((ocpp_get_connection_timeout()) - (getDiffSecNow(startTime[0][TMR_IDX_GUN_DETECT])));
|
|
|
+
|
|
|
break;
|
|
|
}
|
|
|
}
|