Skip to content

Commit

Permalink
Fixed bug which interchanged number phases and stack level when conve… (
Browse files Browse the repository at this point in the history
#929)

* Fixed bug which interchanged number phases and stack level when converting from OCPP to everest ChargingSchedulePeriod type
---------

Signed-off-by: Piet Gömpel <[email protected]>
Signed-off-by: Piet Gömpel <[email protected]>
  • Loading branch information
Pietfried authored and hikinggrass committed Oct 25, 2024
1 parent c2ea89f commit 209f5bb
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions modules/OCPP/conversions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -389,12 +389,11 @@ to_everest_authorization_status(const ocpp::v201::AuthorizationStatusEnum status

types::ocpp::ChargingSchedulePeriod
to_charging_schedule_period(const ocpp::v16::EnhancedChargingSchedulePeriod& period) {
types::ocpp::ChargingSchedulePeriod csp = {
period.startPeriod,
period.limit,
period.stackLevel,
period.numberPhases,
};
types::ocpp::ChargingSchedulePeriod csp;
csp.start_period = period.startPeriod;
csp.limit = period.limit;
csp.number_phases = period.numberPhases;
csp.stack_level = period.stackLevel;
return csp;
}

Expand Down

0 comments on commit 209f5bb

Please sign in to comment.