From eb13241672e34b7d982f0644aa9bced34edcf493 Mon Sep 17 00:00:00 2001 From: Kevin Wallace Date: Sun, 26 Apr 2026 10:29:08 -0700 Subject: replyTo --- cmd/beep/main.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'cmd/beep/main.go') diff --git a/cmd/beep/main.go b/cmd/beep/main.go index 56263d5..7af1f56 100644 --- a/cmd/beep/main.go +++ b/cmd/beep/main.go @@ -19,13 +19,13 @@ func main() { cv := must(cvend.OpenIPP(nil)) defer cv.Close() var lastIgnition bool - pic := must(pic32.OpenIPP(func(msgType byte, msgData []byte) { + pic := must(pic32.OpenIPP(func(seq, replyTo byte, msgType byte, msgData []byte) { if msgType == 0x03 && binary.BigEndian.Uint16(msgData[:2]) == 0x03fb { ignition := msgData[2] != 0 if lastIgnition != ignition { lastIgnition = ignition if ignition { - if err := cv.SendIPP(0x22, []byte{0x06, 0x00, 0x01, 0x00}); err != nil { + if err := cv.SendIPP(0x22, 0, []byte{0x06, 0x00, 0x01, 0x00}); err != nil { panic(err) } } @@ -34,7 +34,7 @@ func main() { })) defer pic.Close() for { - if err := pic.SendIPP(0x02, []byte{0x03, 0xfb}); err != nil { + if err := pic.SendIPP(0x02, 0, []byte{0x03, 0xfb}); err != nil { panic(err) } time.Sleep(100 * time.Millisecond) -- cgit v1.2.3