Skip to content

Commit

Permalink
clang-format
Browse files Browse the repository at this point in the history
Signed-off-by: Kai-Uwe Hermann <[email protected]>
  • Loading branch information
hikinggrass committed Sep 28, 2023
1 parent b131c52 commit b98ae0b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion include/ocpp/v201/charge_point.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ struct Callbacks {
validate_network_profile_callback;
std::optional<std::function<bool(const NetworkConnectionProfile& network_connection_profile)>>
configure_network_connection_profile_callback;
std::optional<std::function<void(const ocpp::DateTime &currentTime)>> time_sync_callback;
std::optional<std::function<void(const ocpp::DateTime& currentTime)>> time_sync_callback;
};

/// \brief Class implements OCPP2.0.1 Charging Station
Expand Down
4 changes: 1 addition & 3 deletions lib/ocpp/v201/charge_point.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1921,8 +1921,7 @@ void ChargePoint::handle_change_availability_req(Call<ChangeAvailabilityRequest>
}
}

void ChargePoint::handle_heartbeat_response(Call<HeartbeatResponse> call)
{
void ChargePoint::handle_heartbeat_response(Call<HeartbeatResponse> call) {
const auto msg = call.msg;

if (this->callbacks.time_sync_callback.has_value()) {
Expand All @@ -1934,7 +1933,6 @@ void ChargePoint::handle_heartbeat_response(Call<HeartbeatResponse> call)
}
}


void ChargePoint::handle_firmware_update_req(Call<UpdateFirmwareRequest> call) {
EVLOG_debug << "Received UpdateFirmwareRequest: " << call.msg << "\nwith messageId: " << call.uniqueId;
UpdateFirmwareResponse response = callbacks.update_firmware_request_callback(call.msg);
Expand Down

0 comments on commit b98ae0b

Please sign in to comment.