Skip to content

Commit

Permalink
fix: add enum
Browse files Browse the repository at this point in the history
  • Loading branch information
shingoxx222 committed Nov 13, 2024
1 parent 1d4cee2 commit 500288d
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 5 deletions.
1 change: 0 additions & 1 deletion lib/ocpp/v201/charge_point.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3593,7 +3593,6 @@ void ChargePoint::handle_install_certificate_req(Call<InstallCertificateRequest>

const auto msg = call.msg;
InstallCertificateResponse response;
const auto certificateType = ocpp::evse_security_conversions::from_ocpp_v201(msg.certificateType);

if ((msg.certificateType == InstallCertificateUseEnum::CSMSRootCertificate ||
msg.certificateType == InstallCertificateUseEnum::ManufacturerRootCertificate) &&
Expand Down
4 changes: 0 additions & 4 deletions lib/ocpp/v201/smart_charging.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,6 @@ std::string profile_validation_result_to_string(ProfileValidationResultEnum e) {
return "DuplicateProfileValidityPeriod";
case ProfileValidationResultEnum::RequestStartTransactionNonTxProfile:
return "RequestStartTransactionNonTxProfile";
case ProfileValidationResultEnum::InvalidSecurityProfile:
return "SecurityProfileTooLowForCertificateInstall";
}

throw EnumToStringException{e, "ProfileValidationResultEnum"};
Expand Down Expand Up @@ -118,8 +116,6 @@ std::string profile_validation_result_to_reason_code(ProfileValidationResultEnum
return "InvalidValue";
case ProfileValidationResultEnum::InvalidProfileType:
return "InternalError";
case ProfileValidationResultEnum::InvalidSecurityProfile:
return "LowSecurityProfile";
}

throw std::out_of_range("No applicable reason code for provided enum of type ProfileValidationResultEnum");
Expand Down

0 comments on commit 500288d

Please sign in to comment.