diff --git a/charger/ocpp.go b/charger/ocpp.go index 02b4169be..0e9a57ee6 100644 --- a/charger/ocpp.go +++ b/charger/ocpp.go @@ -175,7 +175,7 @@ func NewOCPP(id string, connector int, idtag string, hasMeter bool, meterInterva c.log.TRACE.Printf("ChangeSampleMeterValueInterval %T: %v", resp, resp) if resp.Status == core.ConfigurationStatusRejected { - rc <- fmt.Errorf("configuration of meterinterval rejected: %w", err) + rc <- fmt.Errorf("configuration of meter interval rejected: %w", err) } rc <- err }, ocpp.KeyMeterValueSampleInterval, intervalStr) @@ -186,7 +186,7 @@ func NewOCPP(id string, connector int, idtag string, hasMeter bool, meterInterva } } - // get inital meter values + // get initial meter values if hasMeter { ocpp.Instance().TriggerMeterValueRequest(cp) } diff --git a/charger/ocpp/cp.go b/charger/ocpp/cp.go index e2a2165bc..be04a30ee 100644 --- a/charger/ocpp/cp.go +++ b/charger/ocpp/cp.go @@ -305,10 +305,3 @@ func (cp *CP) Currents() (float64, float64, float64, error) { return currents[1], currents[2], currents[3], nil } - -func (cp *CP) MeterSupported() bool { - cp.mu.Lock() - defer cp.mu.Unlock() - - return cp.meterSupported -}