From: Jérôme Benoit Date: Sat, 18 Nov 2023 10:20:32 +0000 (+0100) Subject: refactor: sensible default at meterValues custom value handling X-Git-Tag: v1.2.25~13 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=d624c9afe9fa765da02de6673bd853db6b33040f;p=e-mobility-charging-stations-simulator.git refactor: sensible default at meterValues custom value handling Signed-off-by: Jérôme Benoit --- diff --git a/src/charging-station/ocpp/1.6/OCPP16ServiceUtils.ts b/src/charging-station/ocpp/1.6/OCPP16ServiceUtils.ts index 6628fb81..197fb6a2 100644 --- a/src/charging-station/ocpp/1.6/OCPP16ServiceUtils.ts +++ b/src/charging-station/ocpp/1.6/OCPP16ServiceUtils.ts @@ -790,8 +790,8 @@ export class OCPP16ServiceUtils extends OCPPServiceUtils { connectorMinimumEnergyRounded, { limitationEnabled: chargingStation.stationInfo?.customValueLimitationMeterValues, - unitMultiplier: unitDivider, fallbackValue: connectorMinimumEnergyRounded, + unitMultiplier: unitDivider, }, ), energySampledValueTemplate.fluctuationPercent ?? Constants.DEFAULT_FLUCTUATION_PERCENT, diff --git a/src/charging-station/ocpp/OCPPServiceUtils.ts b/src/charging-station/ocpp/OCPPServiceUtils.ts index 8bebe69d..d9d71298 100644 --- a/src/charging-station/ocpp/OCPPServiceUtils.ts +++ b/src/charging-station/ocpp/OCPPServiceUtils.ts @@ -425,7 +425,7 @@ export class OCPPServiceUtils { ): number { options = { ...{ - limitationEnabled: true, + limitationEnabled: false, unitMultiplier: 1, fallbackValue: 0, },