Skip to content

Commit 40a9f15

Browse files
committed
fix for usb midi devices with random number in the name
1 parent 7529ed1 commit 40a9f15

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/midi/UsbMidiManager.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ class UsbMidiManager {
7373
//find which device this belongs to
7474
var ctls = MidiControllerManager().controllers;
7575
for (var ctl in ctls) {
76-
if (ctl.name == event.device.name && ctl.id == event.device.id) {
76+
if (ctl.id == event.device.id) {
7777
(ctl as UsbMidiController).onDataReceivedLoopback(event.data);
7878
}
7979
}

0 commit comments

Comments
 (0)