diff --git a/charger/ocpp.go b/charger/ocpp.go index 9e2e943f6..43124d9a5 100644 --- a/charger/ocpp.go +++ b/charger/ocpp.go @@ -233,7 +233,7 @@ func NewOCPP(id string, connector int, idtag string, if c.hasMeasurement(types.MeasurandPowerActiveImport) || c.hasMeasurement(types.MeasurandEnergyActiveImportRegister) { ocpp.Instance().TriggerMeterValuesRequest(cp.ID(), cp.Connector()) - if !noConfig && meterSampleInterval > meterInterval && meterInterval > 0 { + if meterInterval > 0 && meterInterval != meterSampleInterval { if err := c.configure(ocpp.KeyMeterValueSampleInterval, strconv.Itoa(int(meterInterval.Seconds()))); err != nil { return nil, err }