Skip to content

Commit 62b7555

Browse files
committed
Update Arduino search path on macOS
1 parent 67991ff commit 62b7555

1 file changed

Lines changed: 2 additions & 9 deletions

File tree

Plugins/ArduinoOutput/ArduinoOutput.cpp

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -63,19 +63,12 @@ Array<String> ArduinoOutput::getDevices()
6363
for (int i = 0; i < devices.size(); i++)
6464
{
6565

66-
#ifdef WIN32
67-
if (devices[i].getDeviceName().compare(0, 7, "Arduino") == 0)
68-
{
69-
out.add (devices[i].getDevicePath());
70-
}
71-
#else
7266
if (devices[i].getDeviceName().compare(0, 6, "ttyACM") == 0 ||
73-
devices[i].getDeviceName().compare(0, 6, "ttyUSB") == 0 ||
67+
devices[i].getDeviceName().compare(0, 7, "tty.usb") == 0 ||
7468
devices[i].getDeviceName().compare(0, 7, "Arduino") == 0)
7569
{
7670
out.add (devices[i].getDevicePath());
7771
}
78-
#endif
7972

8073
}
8174

@@ -215,4 +208,4 @@ void ArduinoOutput::handleTTLEvent (TTLEventPtr event)
215208
}
216209
}
217210
}
218-
}
211+
}

0 commit comments

Comments
 (0)