We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 67991ff commit 62b7555Copy full SHA for 62b7555
1 file changed
Plugins/ArduinoOutput/ArduinoOutput.cpp
@@ -63,19 +63,12 @@ Array<String> ArduinoOutput::getDevices()
63
for (int i = 0; i < devices.size(); i++)
64
{
65
66
-#ifdef WIN32
67
- if (devices[i].getDeviceName().compare(0, 7, "Arduino") == 0)
68
- {
69
- out.add (devices[i].getDevicePath());
70
- }
71
-#else
72
if (devices[i].getDeviceName().compare(0, 6, "ttyACM") == 0 ||
73
- devices[i].getDeviceName().compare(0, 6, "ttyUSB") == 0 ||
+ devices[i].getDeviceName().compare(0, 7, "tty.usb") == 0 ||
74
devices[i].getDeviceName().compare(0, 7, "Arduino") == 0)
75
76
out.add (devices[i].getDevicePath());
77
}
78
-#endif
79
80
81
@@ -215,4 +208,4 @@ void ArduinoOutput::handleTTLEvent (TTLEventPtr event)
215
208
216
209
217
210
218
-}
211
+}
0 commit comments