diff options
author | Christian Pointner <equinox@helsinki.at> | 2016-03-25 00:28:27 (GMT) |
---|---|---|
committer | Christian Pointner <equinox@helsinki.at> | 2016-03-25 00:28:27 (GMT) |
commit | 5554f1b3f82340fe0157b4094e23bbb669829b5d (patch) | |
tree | 57d4362a51d3352b8f8753c5addf06052906a97b /src/rhctl/playout_server.go | |
parent | aa513c85c215f22eba8abfac561c4a619782adf5 (diff) |
add an optional newline for all serial line
Diffstat (limited to 'src/rhctl/playout_server.go')
-rw-r--r-- | src/rhctl/playout_server.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rhctl/playout_server.go b/src/rhctl/playout_server.go index c3cfcf1..118d69f 100644 --- a/src/rhctl/playout_server.go +++ b/src/rhctl/playout_server.go @@ -52,11 +52,11 @@ func ServerInit(name string, ctrldev, hbdev string, rate Baudrate) (srv *Playout srv.health = Dead srv.channel = "music" - if srv.control, err = SerialOpenAndHandle(ctrldev, rate); err != nil { + if srv.control, err = SerialOpenAndHandle(ctrldev, rate, "\r\n"); err != nil { err = fmt.Errorf("Error opening control port(%s): %s", srv.name, err) return } - if srv.heartbeat, err = SerialOpenAndHandle(hbdev, rate); err != nil { + if srv.heartbeat, err = SerialOpenAndHandle(hbdev, rate, "\r\n"); err != nil { err = fmt.Errorf("Error opening control port(%s): %s", srv.name, err) return } |