From aa48157ab243fd7794081b44913c7f26b79d9682 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Sat, 24 Oct 2020 00:25:16 +0200 Subject: [PATCH] Fix max number of connectors calculation. 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.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/charging-station/ChargingStation.js b/src/charging-station/ChargingStation.js index 304a4e7a..d85deccc 100644 --- a/src/charging-station/ChargingStation.js +++ b/src/charging-station/ChargingStation.js @@ -194,8 +194,7 @@ class ChargingStation { } else if (this._stationInfo.numberOfConnectors) { maxConnectors = this._stationInfo.numberOfConnectors; } else { - maxConnectors = Utils.convertToBoolean(this._stationInfo.useConnectorId0) ? Object.keys(this._stationInfo.Connectors).length - 1 : - Object.keys(this._stationInfo.Connectors).length; + maxConnectors = Object.keys(this._stationInfo.Connectors).length; } return maxConnectors; } -- 2.34.1