summaryrefslogtreecommitdiff
path: root/src/rhctl/audio_switch.go
diff options
context:
space:
mode:
authorChristian Pointner <equinox@helsinki.at>2016-04-19 23:56:25 (GMT)
committerChristian Pointner <equinox@helsinki.at>2016-04-19 23:56:25 (GMT)
commit5eae78ec8f85d0d329bd289bed169e5fe3bfd340 (patch)
treedfd470bb62538d458eadb52a843c68119847f12d /src/rhctl/audio_switch.go
parentafc65d6cb58e1aa7485c9fe5c95fd9bd6833c259 (diff)
replaced snooze timer with generic settling timer
Diffstat (limited to 'src/rhctl/audio_switch.go')
-rw-r--r--src/rhctl/audio_switch.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/rhctl/audio_switch.go b/src/rhctl/audio_switch.go
index 41db086..3623138 100644
--- a/src/rhctl/audio_switch.go
+++ b/src/rhctl/audio_switch.go
@@ -98,6 +98,7 @@ type SwitchState struct {
type AudioSwitch struct {
port *SerialPort
timeout time.Duration
+ Inputs ConfigSwitchInputs
current *SwitchCommand
timer *time.Timer
unit SwitchUnitID
@@ -364,6 +365,7 @@ func SwitchInit(conf *Config) (sw *AudioSwitch, err error) {
sw.timeout = conf.Audioswitch.Timeout.Duration
}
sw.unit = conf.Audioswitch.Unit
+ sw.Inputs = conf.Audioswitch.Inputs
sw.StateChanges = make(chan SwitchState, 16)
sw.Commands = make(chan *SwitchCommand, 16)
sw.Updates = make(chan SwitchUpdate, 32)