Ocpp: remove dead code (#3938)
This commit is contained in:
parent
7e0b569a38
commit
4ed65cc3d0
2 changed files with 2 additions and 9 deletions
|
|
@ -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)
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue