Fix misplaced parenthesis
authorJérôme Benoit <jerome.benoit@sap.com>
Tue, 14 Sep 2021 21:48:58 +0000 (23:48 +0200)
committerJérôme Benoit <jerome.benoit@sap.com>
Tue, 14 Sep 2021 21:48:58 +0000 (23:48 +0200)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
src/charging-station/ocpp/1.6/OCPP16ResponseService.ts
src/charging-station/ocpp/1.6/OCPP16ServiceUtils.ts

index ecf127478c10d93aac23ec0f77fa2acc9bdc9cae..1fad09af13c6ad4084e48f1b2ecf606f8f66f6cd 100644 (file)
@@ -22,7 +22,7 @@ export default class OCPP16ResponseService extends OCPPResponseService {
     }
   }
 
-  private handleResponseBootNotification(payload: OCPP16BootNotificationResponse, requestPayload: OCPP16BootNotificationRequest): void {
+  private handleResponseBootNotification(payload: OCPP16BootNotificationResponse): void {
     if (payload.status === OCPP16RegistrationStatus.ACCEPTED) {
       this.chargingStation.addConfigurationKey(OCPP16StandardParametersKey.HeartBeatInterval, payload.interval.toString());
       this.chargingStation.addConfigurationKey(OCPP16StandardParametersKey.HeartbeatInterval, payload.interval.toString(), false, false);
index d0b3eb488ac41a19462b193d0aa7d45298bf2aa6..f0fe3cc298a1977521b6d3d97d213746d453d8bf 100644 (file)
@@ -19,7 +19,7 @@ export class OCPP16ServiceUtils {
     } else if (chargingStation.stationInfo?.powerDivider <= 0) {
       const errMsg = `${chargingStation.logPrefix()} MeterValues measurand ${measurandType ?? OCPP16MeterValueMeasurand.ENERGY_ACTIVE_IMPORT_REGISTER}: powerDivider have zero or below value ${chargingStation.stationInfo.powerDivider}`;
       logger.error(errMsg);
-      throw new OCPPError(ErrorType.INTERNAL_ERROR, errMsg), RequestCommand.METER_VALUES;
+      throw new OCPPError(ErrorType.INTERNAL_ERROR, errMsg, RequestCommand.METER_VALUES);
     }
   }