Circuit: fix validateCurrent and validatePower (#20183)
This commit is contained in:
parent
167124bfa3
commit
455bc3348c
5 changed files with 39 additions and 28 deletions
|
|
@ -239,8 +239,8 @@ type Circuit interface {
|
|||
SetMaxPower(float64)
|
||||
SetMaxCurrent(float64)
|
||||
Update([]CircuitLoad) error
|
||||
ValidateCurrent(old, new float64) float64
|
||||
ValidatePower(old, new float64) float64
|
||||
ValidateCurrent(old, new float64, charging bool) float64
|
||||
ValidatePower(old, new float64, charging bool) float64
|
||||
}
|
||||
|
||||
// Redactor is an interface to redact sensitive data
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue