Fix max buttons

This commit is contained in:
Anna Rose Wiggins 2025-07-16 15:14:07 -04:00
parent a2226b302d
commit 9a01087c73
4 changed files with 11 additions and 9 deletions

View file

@ -26,7 +26,7 @@ func makeRuleTargetButton(targetConfig RuleTargetConfig, devs map[string]*evdev.
}
case strings.HasPrefix(buttonConfig, "0X"):
codeInt, err := strconv.ParseUint(buttonConfig[2:], 16, 32)
codeInt, err := strconv.ParseUint(buttonConfig[2:], 16, 0)
if err != nil {
return nil, err
}
@ -147,6 +147,6 @@ func makeRuleTargetModeSelect(targetConfig RuleTargetConfig, allModes []string)
}
// hasError exists solely to switch on errors in case statements
func hasError(_ interface{}, err error) bool {
func hasError(_ any, err error) bool {
return err != nil
}