Skip to content

Commit

Permalink
fix enable
Browse files Browse the repository at this point in the history
  • Loading branch information
andig committed Dec 16, 2024
1 parent 12660cd commit 6817e07
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion charger/sgready.go
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ func (wb *SgReady) Enabled() (bool, error) {

// Enable implements the api.Charger interface
func (wb *SgReady) Enable(enable bool) error {
mode := map[bool]int64{true: Normal, false: Boost}[enable]
mode := map[bool]int64{false: Normal, true: Boost}[enable]
err := wb.set(mode)
if err == nil {
wb._mode = mode
Expand Down

0 comments on commit 6817e07

Please sign in to comment.