[chronojump] windows: show only usbserial ports
- From: Xavier de Blas <xaviblas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump] windows: show only usbserial ports
- Date: Tue, 29 Jan 2013 13:22:53 +0000 (UTC)
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]