fixes bug where strip/bus eq on would try to validate the band number.

This commit is contained in:
onyx-and-iris 2026-02-05 03:54:53 +00:00
parent 128f0c1df6
commit 8fc5a55eff
2 changed files with 6 additions and 2 deletions

4
bus.go
View File

@ -3,6 +3,8 @@ package main
import (
"fmt"
"time"
"github.com/alecthomas/kong"
)
type BusCmdGroup struct {
@ -168,7 +170,7 @@ type BusEqCmdGroup struct {
} `help:"Commands for controlling a specific EQ band of the bus." arg:""`
}
func (cmd *BusEqCmdGroup) Validate() error {
func (cmd *BusEqCmdGroup) Validate(ctx kong.Context) error {
if cmd.Band.Band < 1 || cmd.Band.Band > 6 {
return fmt.Errorf("EQ band number must be between 1 and 6")
}

View File

@ -3,6 +3,8 @@ package main
import (
"fmt"
"time"
"github.com/alecthomas/kong"
)
type StripCmdGroup struct {
@ -343,7 +345,7 @@ type StripEqCmdGroup struct {
} `help:"Commands for controlling a specific EQ band of the strip." arg:""`
}
func (cmd *StripEqCmdGroup) Validate() error {
func (cmd *StripEqCmdGroup) Validate(ctx kong.Context) error {
if cmd.Band.Band < 1 || cmd.Band.Band > 4 {
return fmt.Errorf("EQ band number must be between 1 and 4")
}