Skip to content

Commit

Permalink
myPV: fix current calculation by enforcing 1p config (#18235)
Browse files Browse the repository at this point in the history
  • Loading branch information
andig authored Jan 15, 2025
1 parent 516993b commit e6e8aa1
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions charger/mypv.go
Original file line number Diff line number Diff line change
Expand Up @@ -236,3 +236,10 @@ func (wb *MyPv) GetLimitSoc() (int64, error) {

return int64(binary.BigEndian.Uint16(b)) / 10, nil
}

var _ api.PhaseDescriber = (*MyPv)(nil)

// Phases implements the api.PhasesDescriber interface
func (wb *MyPv) Phases() int {
return 1
}

0 comments on commit e6e8aa1

Please sign in to comment.