[chronojump] encoder win port name has to be "COM?"
- From: Xavier de Blas <xaviblas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump] encoder win port name has to be "COM?"
- Date: Tue, 29 Jan 2013 12:37:50 +0000 (UTC)
commit e3b0b74de3901d81d3d25336a8a205bd52198670
Author: Xavier de Blas <xaviblas gmail com>
Date: Tue Jan 29 13:37:18 2013 +0100
encoder win port name has to be "COM?"
src/gui/chronopic.cs | 9 ++++++---
1 files changed, 6 insertions(+), 3 deletions(-)
---
diff --git a/src/gui/chronopic.cs b/src/gui/chronopic.cs
index 6f6cdc2..e0ad2d1 100644
--- a/src/gui/chronopic.cs
+++ b/src/gui/chronopic.cs
@@ -858,11 +858,14 @@ Log.WriteLine("bbb");
if(Util.IsWindows()) {
string fullName = UtilGtk.ComboGetActive(combo_windows_encoder);
if(fullName.Length < 3)
- return "0";
+ return "COM1";
else {
//COM5
- int number = Convert.ToInt32(fullName.Substring(3));
- return (number -1).ToString(); //returns a "4", because eg: COM1 is port 0
+ //int number = Convert.ToInt32(fullName.Substring(3));
+ //return (number -1).ToString(); //returns a "4", because eg: COM1 is port 0
+
+ //with py2exe integration of serial, we need the portname
+ return fullName;
}
}
else
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]