chore: simplify

This commit is contained in:
andig 2023-10-21 13:50:21 +02:00
parent fa0fb907ff
commit 346a8dc5ad
2 changed files with 0 additions and 8 deletions

View file

@ -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))
}

View file

@ -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))
}