diff options
author | Christian Pointner <equinox@helsinki.at> | 2016-11-17 01:51:03 (GMT) |
---|---|---|
committer | Christian Pointner <equinox@helsinki.at> | 2016-11-17 01:51:03 (GMT) |
commit | aed7e2d70f10c20e3f9bbaa046594133aa29dda1 (patch) | |
tree | 4d9a376c3feb4bac7b3778ffac881deec2d79edf /src/rhctl/conf.go | |
parent | 8f39244ad12e47121324f881b9caa651d8d7e85f (diff) |
move serial port to external package
Diffstat (limited to 'src/rhctl/conf.go')
-rw-r--r-- | src/rhctl/conf.go | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/rhctl/conf.go b/src/rhctl/conf.go index c163b60..3edacdc 100644 --- a/src/rhctl/conf.go +++ b/src/rhctl/conf.go @@ -28,6 +28,7 @@ import ( "strings" "time" + "code.helsinki.at/goserial" "github.com/naoina/toml" ) @@ -60,17 +61,17 @@ func (p ConfigSwitchInputs) GetServerAndChannel(in SwitchInputNum) (string, stri type Config struct { Audioswitch struct { Device string `toml:"dev"` - Baudrate Baudrate `toml:"baud"` + Baudrate goserial.Baudrate `toml:"baud"` Timeout Duration `toml:"timeout"` Unit SwitchUnitID `toml:"unit"` Inputs ConfigSwitchInputs `toml:"inputs"` } Servers map[string]struct { - Device string `toml:"dev"` - Baudrate Baudrate `toml:"baud"` - HeartbeatTimeout Duration `toml:"heartbeat_timeout"` - HeartbeatThreshold uint `toml:"heartbeat_threshold"` + Device string `toml:"dev"` + Baudrate goserial.Baudrate `toml:"baud"` + HeartbeatTimeout Duration `toml:"heartbeat_timeout"` + HeartbeatThreshold uint `toml:"heartbeat_threshold"` } Timing struct { |