diff options
Diffstat (limited to 'src/rhctl/audio_switch.go')
-rw-r--r-- | src/rhctl/audio_switch.go | 2 |
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) |