lirc requries linebreak \n for SEND_ONCE (#57)

Co-authored-by: Victor Chen <vc@discoverelement.com>
pull/58/head
emulatorchen 3 years ago committed by GitHub
parent e271f7c07b
commit 8b220202b3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -64,7 +64,7 @@ func (c *Conn) Close() error {
// Emit implements ir.IR. // Emit implements ir.IR.
func (c *Conn) Emit(remote string, key ir.Key) error { func (c *Conn) Emit(remote string, key ir.Key) error {
// http://www.lirc.org/html/lircd.html#lbAH // http://www.lirc.org/html/lircd.html#lbAH
_, err := fmt.Fprintf(c.w, "SEND_ONCE %s %s", remote, key) _, err := fmt.Fprintf(c.w, "SEND_ONCE %s %s\n", remote, key)
return err return err
} }

Loading…
Cancel
Save