Skip to content

Commit

Permalink
lirc requries linebreak \n for SEND_ONCE (#57)
Browse files Browse the repository at this point in the history
Co-authored-by: Victor Chen <[email protected]>
  • Loading branch information
emulatorchen and Victor Chen authored Mar 31, 2023
1 parent e271f7c commit 8b22020
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lirc/lirc.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ func (c *Conn) Close() error {
// Emit implements ir.IR.
func (c *Conn) Emit(remote string, key ir.Key) error {
// 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
}

Expand Down

0 comments on commit 8b22020

Please sign in to comment.