Skip to content

Commit

Permalink
Merge pull request #4156 from sap-labs-france/smart-charging-fix
Browse files Browse the repository at this point in the history
Smart charging fix - Default efficiency not used in %
  • Loading branch information
Claude ROSSI authored Mar 27, 2023
2 parents fa7feae + 3b3241a commit d27f9b8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -906,7 +906,7 @@ export default class SapSmartChargingIntegration extends SmartChargingIntegratio
if (chargePoint?.efficiency > 0) {
return Utils.roundTo(currentLimit * chargePoint.efficiency / 100 * numberOfConnectedPhase, 1);
}
return Utils.roundTo(currentLimit * Constants.DC_CHARGING_STATION_DEFAULT_EFFICIENCY_PERCENT * numberOfConnectedPhase, 1);
return Utils.roundTo(currentLimit * Constants.DC_CHARGING_STATION_DEFAULT_EFFICIENCY_PERCENT / 100 * numberOfConnectedPhase, 1);
}
return Utils.roundTo((currentLimit * numberOfConnectedPhase), 1);
}
Expand Down

0 comments on commit d27f9b8

Please sign in to comment.