Skip to content

Commit

Permalink
minor style improvement
Browse files Browse the repository at this point in the history
Signed-off-by: pietfried <[email protected]>
  • Loading branch information
Pietfried committed Feb 25, 2024
1 parent f9b6361 commit b8b6404
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions lib/ocpp/v16/charge_point_impl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1453,14 +1453,13 @@ void ChargePointImpl::handleChangeConfigurationRequest(ocpp::Call<ChangeConfigur
response.status == ConfigurationStatus::Accepted) {
kv.value().value = call.msg.value;
this->configuration_key_changed_callbacks[call.msg.key](kv.value());
} else {
if (this->generic_configuration_key_changed_callback != nullptr and
response.status == ConfigurationStatus::Accepted) {
kv.value().value = call.msg.value;
this->generic_configuration_key_changed_callback(kv.value());
}
} else if (this->generic_configuration_key_changed_callback != nullptr and
response.status == ConfigurationStatus::Accepted) {
kv.value().value = call.msg.value;
this->generic_configuration_key_changed_callback(kv.value());
}
}
}

void ChargePointImpl::switchSecurityProfile(int32_t new_security_profile, int32_t max_connection_attempts) {
EVLOG_info << "Switching security profile from " << this->configuration->getSecurityProfile() << " to "
Expand Down

0 comments on commit b8b6404

Please sign in to comment.