Ocpp: remove dead code (#3938)

This commit is contained in:
andig 2022-07-25 17:07:06 +02:00 • committed by GitHub
parent 7e0b569a38
commit 4ed65cc3d0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 9 deletions

View file

@ -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)
}

View file

@ -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
}