Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion modules/EVSE/EvseV2G/din_server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -454,7 +454,11 @@ enum v2g_event states::handle_din_contract_authentication(struct v2g_connection*
enum v2g_event nextEvent = V2G_EVENT_NO_EVENT;

/* Fill the EVSE response message */
res->ResponseCode = din_responseCodeType_OK; // [V2G-DC-388]
if (conn->ctx->session.authorization_rejected == true) {
res->ResponseCode = din_responseCodeType_FAILED;
} else {
res->ResponseCode = din_responseCodeType_OK; // [V2G-DC-388]
}
res->EVSEProcessing = (conn->ctx->evse_v2g_data.evse_processing[PHASE_AUTH] == (uint8_t)0)
? din_EVSEProcessingType_Finished
: din_EVSEProcessingType_Ongoing;
Expand Down
2 changes: 2 additions & 0 deletions modules/EVSE/EvseV2G/iso_server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1187,6 +1187,8 @@ static enum v2g_event handle_iso_authorization(struct v2g_connection* conn) {
} else {
res->ResponseCode = iso2_responseCodeType_FAILED;
}
} else if (conn->ctx->session.authorization_rejected == true) {
res->ResponseCode = iso2_responseCodeType_FAILED;
}

error_out:
Expand Down