Skip to content

Commit

Permalink
clang-format
Browse files Browse the repository at this point in the history
Signed-off-by: Cornelius Claussen <[email protected]>
  • Loading branch information
corneliusclaussen committed Feb 9, 2024
1 parent 0e81145 commit 4653e22
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions lib/ocpp/v16/smart_charging.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,7 @@ namespace v16 {
/// \brief Conversion from a given ChargingSchedulePeriod \p k to a given json object \p j
void to_json(json& j, const EnhancedChargingSchedulePeriod& k) {
// the required parts of the message
j = json{
{"startPeriod", k.startPeriod},
{"limit", k.limit},
{"stackLevel", k.stackLevel}
};
j = json{{"startPeriod", k.startPeriod}, {"limit", k.limit}, {"stackLevel", k.stackLevel}};
// the optional parts of the message
if (k.numberPhases) {
j["numberPhases"] = k.numberPhases.value();
Expand Down

0 comments on commit 4653e22

Please sign in to comment.