summaryrefslogtreecommitdiff
path: root/src/rhctl/audio_switch.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/rhctl/audio_switch.go')
-rw-r--r--src/rhctl/audio_switch.go7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/rhctl/audio_switch.go b/src/rhctl/audio_switch.go
index 2a88b0d..b3a526e 100644
--- a/src/rhctl/audio_switch.go
+++ b/src/rhctl/audio_switch.go
@@ -48,11 +48,6 @@ type SwitchResponse struct {
Message string
}
-type SwitchCommand struct {
- Cmd SwitchCmdString
- Response chan<- SwitchResponse
-}
-
type SwitchUpdateType uint8
const (
@@ -159,7 +154,7 @@ func (sw *AudioSwitch) Run() {
return
case cmd := <-sw.Commands:
sw.current = cmd
- sw.port.tx <- cmd.Cmd.Generate(sw.unit)
+ sw.port.tx <- cmd.Cmd.Generate(append(cmd.Args, sw.unit)...)
sw.timer = time.NewTimer(sw.timeout)
case data := <-sw.port.rx:
sw.handleData(data)