Skip to content

Commit

Permalink
chore: simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
andig committed Oct 21, 2023
1 parent fa0fb90 commit 346a8dc
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 8 deletions.
4 changes: 0 additions & 4 deletions charger/abl.go
Original file line number Diff line number Diff line change
Expand Up @@ -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))
}

Expand Down
4 changes: 0 additions & 4 deletions charger/heidelberg-ec.go
Original file line number Diff line number Diff line change
Expand Up @@ -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))
}

Expand Down

0 comments on commit 346a8dc

Please sign in to comment.