diff --git a/RISE-V2G-SECC/src/main/java/com/v2gclarity/risev2g/secc/states/WaitForPowerDeliveryReq.java b/RISE-V2G-SECC/src/main/java/com/v2gclarity/risev2g/secc/states/WaitForPowerDeliveryReq.java index 789948f..0a87c51 100644 --- a/RISE-V2G-SECC/src/main/java/com/v2gclarity/risev2g/secc/states/WaitForPowerDeliveryReq.java +++ b/RISE-V2G-SECC/src/main/java/com/v2gclarity/risev2g/secc/states/WaitForPowerDeliveryReq.java @@ -151,9 +151,12 @@ public class WaitForPowerDeliveryReq extends ServerState { dcEVSEStatusCode.equals(DCEVSEStatusCodeType.EVSE_SHUTDOWN) || dcEVSEStatusCode.equals(DCEVSEStatusCodeType.EVSE_EMERGENCY_SHUTDOWN) || dcEVSEStatusCode.equals(DCEVSEStatusCodeType.EVSE_MALFUNCTION)) { - getLogger().error("EVSE status code is '" + dcEVSEStatusCode.toString() + "'"); - powerDeliveryRes.setResponseCode(ResponseCodeType.FAILED_POWER_DELIVERY_NOT_APPLIED); - return false; + getLogger().warn("EVSE status code is '" + dcEVSEStatusCode.toString() + "'"); + + if (!powerDeliveryReq.getChargeProgress().equals(ChargeProgressType.STOP)) { + powerDeliveryRes.setResponseCode(ResponseCodeType.FAILED_POWER_DELIVERY_NOT_APPLIED); + return false; + } } }