Skip to content

Commit

Permalink
mennekes: fix phaseswitch and power
Browse files Browse the repository at this point in the history
  • Loading branch information
premultiply committed Jan 9, 2024
1 parent a676fe5 commit 72b4a1d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions charger/mennekes.go
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ func (wb *Mennekes) CurrentPower() (float64, error) {
return 0, err
}

return float64(encoding.Float32(b)) * 1e3, nil
return float64(encoding.Float32(b)), nil
}

var _ api.MeterEnergy = (*Mennekes)(nil)
Expand Down Expand Up @@ -263,7 +263,7 @@ var _ api.PhaseSwitcher = (*Mennekes)(nil)
// Phases1p3p implements the api.PhaseSwitcher interface
func (wb *Mennekes) Phases1p3p(phases int) error {
var u uint16
if phases == 3 {
if phases == 1 {
u = 1
}

Expand Down

0 comments on commit 72b4a1d

Please sign in to comment.