chore: simplify
This commit is contained in:
parent
51ef2e7ac8
commit
cf5e2bac0f
4 changed files with 21 additions and 23 deletions
|
|
@ -101,9 +101,7 @@ type Meter struct {
|
|||
// Decorate attaches additional capabilities to the base meter
|
||||
func (m *Meter) Decorate(
|
||||
totalEnergy func() (float64, error),
|
||||
currents func() (float64, float64, float64, error),
|
||||
voltages func() (float64, float64, float64, error),
|
||||
powers func() (float64, float64, float64, error),
|
||||
currents, voltages, powers func() (float64, float64, float64, error),
|
||||
batterySoc func() (float64, error),
|
||||
batteryCapacity func() float64,
|
||||
maxACPower func() float64,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue