Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 2 additions & 9 deletions DMX/Assets/DMX/Scripts/DMX.cs
Original file line number Diff line number Diff line change
Expand Up @@ -164,15 +164,8 @@ private void GetPortNames()
{
int p = (int)System.Environment.OSVersion.Platform;
serialPorts = new List<string>();
serialPorts.Add("");

if(p == 4 || p == 128 || p == 6)
{
string[] ttys = Directory.GetFiles("/dev/", "tty.*");
foreach(string dev in ttys)
{
serialPorts.Add(dev.Replace("/", "\\")); //Replace forward slash to play nicely with gui.
}
foreach (string name in SerialPort.GetPortNames()) {
serialPorts.Add(name);
}
}

Expand Down