Removed useless type conversion.
authorJérôme Benoit <jerome.benoit@sap.com>
Fri, 4 Dec 2020 15:51:05 +0000 (16:51 +0100)
committerJérôme Benoit <jerome.benoit@sap.com>
Fri, 4 Dec 2020 15:51:05 +0000 (16:51 +0100)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
src/charging-station/ChargingStation.ts

index 9367f6530030d0e3813e5704e68aeaae8063135d..1da63faacc5449659dc647d9d0f909286574c245 100644 (file)
@@ -1120,7 +1120,7 @@ export default class ChargingStation {
 
   handleResponseBootNotification(payload: BootNotificationResponse, requestPayload: BootNotificationRequest): void {
     if (payload.status === RegistrationStatus.ACCEPTED) {
-      this._heartbeatInterval = Utils.convertToInt(payload.interval) * 1000;
+      this._heartbeatInterval = payload.interval * 1000;
       this._heartbeatSetInterval ? this._restartHeartbeat() : this._startHeartbeat();
       this._addConfigurationKey('HeartBeatInterval', payload.interval.toString());
       this._addConfigurationKey('HeartbeatInterval', payload.interval.toString(), false, false);