chore: simplify
This commit is contained in:
parent
fa0fb907ff
commit
346a8dc5ad
2 changed files with 0 additions and 8 deletions
|
|
@ -197,10 +197,6 @@ func (wb *ABLeMH) Enable(enable bool) error {
|
|||
|
||||
// MaxCurrent implements the api.Charger interface
|
||||
func (wb *ABLeMH) MaxCurrent(current int64) error {
|
||||
if current < 6 {
|
||||
return fmt.Errorf("invalid current %d", current)
|
||||
}
|
||||
|
||||
return wb.MaxCurrentMillis(float64(current))
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -210,10 +210,6 @@ func (wb *HeidelbergEC) Enable(enable bool) error {
|
|||
|
||||
// MaxCurrent implements the api.Charger interface
|
||||
func (wb *HeidelbergEC) MaxCurrent(current int64) error {
|
||||
if current < 6 {
|
||||
return fmt.Errorf("invalid current %d", current)
|
||||
}
|
||||
|
||||
return wb.MaxCurrentMillis(float64(current))
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue