Author: miguel
Date: 2006-08-13 21:52:12 -0400 (Sun, 13 Aug 2006)
New Revision: 63695

Modified:
   trunk/mcs/class/System/System.IO.Ports/SerialPort.cs
Log:
Condition when we reset

Modified: trunk/mcs/class/System/System.IO.Ports/SerialPort.cs
===================================================================
--- trunk/mcs/class/System/System.IO.Ports/SerialPort.cs        2006-08-14 
01:46:11 UTC (rev 63694)
+++ trunk/mcs/class/System/System.IO.Ports/SerialPort.cs        2006-08-14 
01:52:12 UTC (rev 63695)
@@ -611,8 +611,9 @@
                                        current++;
                                        if (current == byte_value.Length)
                                                return encoding.GetString 
(seen.ToArray (), 0, seen.Count - byte_value.Length);
-                               } else
-                                       current = 0;
+                               } else {
+                                       current = (byte_value [0] == n) ? 1 : 0;
+                               }
                        }
                        return encoding.GetString (seen.ToArray ());
                }

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to