usb: rename callback to handler to keep consistent

Signed-off-by: deadprogram <ron@hybridgroup.com>
This commit is contained in:
deadprogram
2022-07-12 19:59:03 +02:00
committed by Ron Evans
parent 8fed063820
commit 5fdb894760
5 changed files with 23 additions and 23 deletions
+1 -1
View File
@@ -15,7 +15,7 @@ func main() {
button.Configure(machine.PinConfig{Mode: machine.PinInputPullup})
m := midi.New()
m.SetCallback(func(b []byte) {
m.SetHandler(func(b []byte) {
led.Set(!led.Get())
fmt.Printf("% X\r\n", b)
m.Write(b)