goe: Fix frc operator (#5597)

This commit is contained in:
premultiply 2023-01-16 08:59:14 +01:00 • committed by GitHub
parent c294bef4b7
commit c5a0465b30
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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