diff --git a/include/ocpp/v201/charge_point.hpp b/include/ocpp/v201/charge_point.hpp index 942b4950a9..b3f4f7844d 100644 --- a/include/ocpp/v201/charge_point.hpp +++ b/include/ocpp/v201/charge_point.hpp @@ -95,7 +95,7 @@ struct Callbacks { validate_network_profile_callback; std::optional> configure_network_connection_profile_callback; - std::optional> time_sync_callback; + std::optional> time_sync_callback; }; /// \brief Class implements OCPP2.0.1 Charging Station diff --git a/lib/ocpp/v201/charge_point.cpp b/lib/ocpp/v201/charge_point.cpp index 34622dd716..09429f9e89 100644 --- a/lib/ocpp/v201/charge_point.cpp +++ b/lib/ocpp/v201/charge_point.cpp @@ -1921,8 +1921,7 @@ void ChargePoint::handle_change_availability_req(Call } } -void ChargePoint::handle_heartbeat_response(Call call) -{ +void ChargePoint::handle_heartbeat_response(Call call) { const auto msg = call.msg; if (this->callbacks.time_sync_callback.has_value()) { @@ -1934,7 +1933,6 @@ void ChargePoint::handle_heartbeat_response(Call call) } } - void ChargePoint::handle_firmware_update_req(Call call) { EVLOG_debug << "Received UpdateFirmwareRequest: " << call.msg << "\nwith messageId: " << call.uniqueId; UpdateFirmwareResponse response = callbacks.update_firmware_request_callback(call.msg);