refactor: stricter type checking in conditions
[e-mobility-charging-stations-simulator.git] / src / charging-station / ocpp / 1.6 / OCPP16ResponseService.ts
index edec1e4eb53f40bc62f93349d4e97db907637fad..64145bb3db2fe05a7bf840462092a85ff22f7756 100644 (file)
@@ -657,7 +657,7 @@ export class OCPP16ResponseService extends OCPPResponseService {
       );
       chargingStation.startMeterValues(
         connectorId,
-        configuredMeterValueSampleInterval
+        configuredMeterValueSampleInterval !== undefined
           ? secondsToMilliseconds(convertToInt(configuredMeterValueSampleInterval.value))
           : Constants.DEFAULT_METER_VALUES_INTERVAL,
       );