Skip to content

Commit

Permalink
fix: compiling error
Browse files Browse the repository at this point in the history
Signed-off-by: Xin Xu <[email protected]>
  • Loading branch information
shingoxx222 committed Nov 13, 2024
1 parent e8dfc99 commit 23d04b3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/ocpp/v201/charge_point.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3597,13 +3597,13 @@ bool ChargePoint::should_reject_certificate_install(InstallCertificateUseEnum ce
switch (cert_type) {
case InstallCertificateUseEnum::CSMSRootCertificate:
return !this->device_model
.get_optional_value<bool>(
->get_optional_value<bool>(
ControllerComponentVariables::AllowCSMSRootCertificateInstallWhenLowSecurityProfile)
.value_or(true);

case InstallCertificateUseEnum::ManufacturerRootCertificate:
return !this->device_model
.get_optional_value<bool>(
->get_optional_value<bool>(
ControllerComponentVariables::AllowManufacturerRootCertificateInstallWhenLowSecurityProfile)
.value_or(true);
default:
Expand Down

0 comments on commit 23d04b3

Please sign in to comment.