summaryrefslogtreecommitdiff
path: root/cmd/beep/main.go
diff options
context:
space:
mode:
authorKevin Wallace <kevin@pentabarf.net>2026-04-26 10:29:08 -0700
committerKevin Wallace <kevin@pentabarf.net>2026-04-26 10:43:21 -0700
commiteb13241672e34b7d982f0644aa9bced34edcf493 (patch)
tree8646d45d5ea6dbae51b6f43b0d1ed9b3d3d4f633 /cmd/beep/main.go
parentcvend wip (diff)
replyToHEADmaster
Diffstat (limited to 'cmd/beep/main.go')
-rw-r--r--cmd/beep/main.go6
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)