diff options
| author | Kevin Wallace <kevin@pentabarf.net> | 2026-04-26 10:29:08 -0700 |
|---|---|---|
| committer | Kevin Wallace <kevin@pentabarf.net> | 2026-04-26 10:43:21 -0700 |
| commit | eb13241672e34b7d982f0644aa9bced34edcf493 (patch) | |
| tree | 8646d45d5ea6dbae51b6f43b0d1ed9b3d3d4f633 /cmd/beep | |
| parent | cvend wip (diff) | |
Diffstat (limited to 'cmd/beep')
| -rw-r--r-- | cmd/beep/main.go | 6 |
1 files changed, 3 insertions, 3 deletions
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) |