From 5ab671dd938e496199b214fef0de47f24c747a74 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Sat, 14 Jan 2023 21:16:59 +0100 Subject: [PATCH] Display the complete matching power limitation result in log MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérôme Benoit --- src/charging-station/ChargingStation.ts | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/charging-station/ChargingStation.ts b/src/charging-station/ChargingStation.ts index a52ebacb..ee1ebff4 100644 --- a/src/charging-station/ChargingStation.ts +++ b/src/charging-station/ChargingStation.ts @@ -1807,10 +1807,7 @@ export default class ChargingStation { `${this.logPrefix()} Charging profile id ${ matchingChargingProfile.chargingProfileId } limit ${limit} is greater than connector id ${connectorId} maximum ${connectorMaximumPower}: %j`, - this.getConnectorStatus(connectorId).chargingProfiles.find( - (chargingProfile) => - chargingProfile.chargingProfileId === matchingChargingProfile.chargingProfileId - ) + result ); limit = connectorMaximumPower; } -- 2.34.1