Etrel: remove api.CurrentGetter (#14635)
This commit is contained in:
parent
1feb49286b
commit
202980607c
1 changed files with 2 additions and 11 deletions
|
|
@ -190,17 +190,8 @@ func (wb *Etrel) MaxCurrentMillis(current float64) error {
|
|||
return err
|
||||
}
|
||||
|
||||
var _ api.CurrentGetter = (*Etrel)(nil)
|
||||
|
||||
// GetMaxCurrent implements the api.CurrentGetter interface
|
||||
func (wb *Etrel) GetMaxCurrent() (float64, error) {
|
||||
b, err := wb.conn.ReadHoldingRegisters(wb.base+etrelRegMaxCurrent, 2)
|
||||
if err != nil {
|
||||
return 0, err
|
||||
}
|
||||
|
||||
return float64(math.Float32frombits(binary.BigEndian.Uint32(b))), nil
|
||||
}
|
||||
// removed due to https://github.com/evcc-io/evcc/issues/14507
|
||||
// var _ api.CurrentGetter = (*Etrel)(nil)
|
||||
|
||||
var _ api.Meter = (*Etrel)(nil)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue