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.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/rhctl/audio_switch.go b/src/rhctl/audio_switch.go
index b3a526e..bb94f61 100644
--- a/src/rhctl/audio_switch.go
+++ b/src/rhctl/audio_switch.go
@@ -153,8 +153,10 @@ func (sw *AudioSwitch) Run() {
case <-stop:
return
case cmd := <-sw.Commands:
+ c := cmd.Cmd.Generate(append(cmd.Args, sw.unit)...)
+ rhdl.Printf("sending '%s' to switch", c)
sw.current = cmd
- sw.port.tx <- cmd.Cmd.Generate(append(cmd.Args, sw.unit)...)
+ sw.port.tx <- c
sw.timer = time.NewTimer(sw.timeout)
case data := <-sw.port.rx:
sw.handleData(data)