Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Toshok <toshok@novell.com>2006-08-14 19:37:59 +0400
committerChris Toshok <toshok@novell.com>2006-08-14 19:37:59 +0400
commitf04fcf0bfe0d0d72a0888921f9d08694ccad58ba (patch)
tree8aa8d6c89bd257b43cb657c9e92cefc0f7e0ff62 /mcs/class/System/System.IO.Ports/SerialPort.cs
parentd38f3fd2ea2450b0aeedf40ae2b890ec96cce4c5 (diff)
2006-08-14 Chris Toshok <toshok@ximian.com>
* SerialPort.cs: the paths returned by Directory.GetFiles have the directory at the beginning of the string. svn path=/trunk/mcs/; revision=63725
Diffstat (limited to 'mcs/class/System/System.IO.Ports/SerialPort.cs')
-rw-r--r--mcs/class/System/System.IO.Ports/SerialPort.cs3
1 files changed, 2 insertions, 1 deletions
diff --git a/mcs/class/System/System.IO.Ports/SerialPort.cs b/mcs/class/System/System.IO.Ports/SerialPort.cs
index 197fa11759d..8a83db66ed1 100644
--- a/mcs/class/System/System.IO.Ports/SerialPort.cs
+++ b/mcs/class/System/System.IO.Ports/SerialPort.cs
@@ -462,7 +462,8 @@ namespace System.IO.Ports
List<string> serial_ports = new List<string> ();
foreach (string dev in ttys){
- if (dev.StartsWith ("ttyS") || dev.StartsWith ("ttyUSB"))
+ Console.WriteLine (dev);
+ if (dev.StartsWith ("/dev/ttyS") || dev.StartsWith ("/dev/ttyUSB"))
serial_ports.Add (dev);
}