From 7d34a2f48aed78f2e398cae994351c6fa1bd29dc Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Mon, 22 May 2023 00:12:43 +0200 Subject: [PATCH] refactor: cleanup constants namespace MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérôme Benoit --- .vscode/settings.json | 1 + src/charging-station/ChargingStation.ts | 2 +- src/utils/Constants.ts | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index 26d1001e..f76083ba 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -35,6 +35,7 @@ "Recurrency", "robohydra", "sonarlint", + "SRPC", "tsdoc", "VCAP", "webui" diff --git a/src/charging-station/ChargingStation.ts b/src/charging-station/ChargingStation.ts index 5ce061e8..1e95df4d 100644 --- a/src/charging-station/ChargingStation.ts +++ b/src/charging-station/ChargingStation.ts @@ -1675,7 +1675,7 @@ export class ChargingStation { await Utils.sleep( this?.bootNotificationResponse?.interval ? this.bootNotificationResponse.interval * 1000 - : Constants.OCPP_DEFAULT_BOOT_NOTIFICATION_INTERVAL + : Constants.DEFAULT_BOOT_NOTIFICATION_INTERVAL ); } } while ( diff --git a/src/utils/Constants.ts b/src/utils/Constants.ts index 421cac55..730f1f28 100644 --- a/src/utils/Constants.ts +++ b/src/utils/Constants.ts @@ -1,7 +1,7 @@ import { MeterValueMeasurand } from '../types'; export class Constants { - static readonly OCPP_DEFAULT_BOOT_NOTIFICATION_INTERVAL = 60000; // Ms + static readonly DEFAULT_BOOT_NOTIFICATION_INTERVAL = 60000; // Ms static readonly CHARGING_STATION_DEFAULT_RESET_TIME = 60000; // Ms static readonly CHARGING_STATION_ATG_INITIALIZATION_TIME = 1000; // Ms -- 2.34.1