[chronojump] windows: show only usbserial ports



commit 16f84df226815d7219f3090e06fc13b2921971fd
Author: Xavier de Blas <xaviblas gmail com>
Date:   Tue Jan 29 14:22:30 2013 +0100

    windows: show only usbserial ports

 src/gui/chronopic.cs |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/src/gui/chronopic.cs b/src/gui/chronopic.cs
index e0ad2d1..f472c3e 100644
--- a/src/gui/chronopic.cs
+++ b/src/gui/chronopic.cs
@@ -304,8 +304,10 @@ Log.WriteLine("bbb");
 	private void createComboWindows() {
 		//combo port stuff
 		comboWindowsOptions = new string[32];
-		for (int i=1; i <= 32; i ++)
-			comboWindowsOptions[i-1] = "COM" + i;
+		//for (int i=1; i <= 32; i ++)
+			//comboWindowsOptions[i-1] = "COM" + i;
+		comboWindowsOptions = Util.StringArrayToString(SerialPort.GetPortNames(),"\n");
+
 		string [] def = Util.StringToStringArray(Constants.ChronopicDefaultPortWindows);
 		string [] allWithDef = Util.AddArrayString(def, comboWindowsOptions);
 	



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]