diff options
Diffstat (limited to 'cmd/pic32-ipp')
| -rw-r--r-- | cmd/pic32-ipp/main.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd/pic32-ipp/main.go b/cmd/pic32-ipp/main.go index c6d3d98..34bc571 100644 --- a/cmd/pic32-ipp/main.go +++ b/cmd/pic32-ipp/main.go @@ -20,7 +20,7 @@ func main() { log.SetFlags(log.Lshortfile | log.Ldate | log.Ltime | log.Lmicroseconds) log.Println("pic32-ipp start") wc := make(chan struct{}, 1) - s, err := pic32.OpenIPP(func(msgType byte, msgData []byte) { + s, err := pic32.OpenIPP(func(seq, replyTo byte, msgType byte, msgData []byte) { pic32.LogIPP(msgType, msgData) select { case wc <- struct{}{}: @@ -44,7 +44,7 @@ func main() { } else { msgData = bs } - if err := s.SendIPP(msgType, msgData); err != nil { + if err := s.SendIPP(msgType, 0, msgData); err != nil { panic(err) } if *wait > 0 { |