From c5a0465b30862813ab0bacc06615add366e4a8f3 Mon Sep 17 00:00:00 2001 From: premultiply <4681172+premultiply@users.noreply.github.com> Date: Mon, 16 Jan 2023 08:59:14 +0100 Subject: [PATCH] goe: Fix frc operator (#5597) --- charger/go-e.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/charger/go-e.go b/charger/go-e.go index 3f8497fb9..27f14057c 100644 --- a/charger/go-e.go +++ b/charger/go-e.go @@ -126,7 +126,7 @@ func (c *GoE) Enable(enable bool) error { param := map[bool]string{false: "alw", true: "frc"}[c.api.IsV2()] if c.api.IsV2() { - b += 1 + b ^= 1 } return c.api.Update(fmt.Sprintf("%s=%d", param, b))