Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
}
private getVoltageOut(stationInfo?: ChargingStationInfo): number {
- const defaultVoltageOut = getDefaultVoltageOut(
- this.getCurrentOutType(stationInfo),
- this.logPrefix(),
- this.templateFile,
+ return (
+ (stationInfo ?? this.stationInfo).voltageOut ??
+ getDefaultVoltageOut(this.getCurrentOutType(stationInfo), this.logPrefix(), this.templateFile)
);
- return (stationInfo ?? this.stationInfo).voltageOut ?? defaultVoltageOut;
}
private getAmperageLimitation(): number | undefined {