[chronojump/michrolab: 56/57] Disabled FTDI detection for reding from CJ the load sensor
- From: Xavier Padullés <xpadulles src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump/michrolab: 56/57] Disabled FTDI detection for reding from CJ the load sensor
- Date: Tue, 24 May 2022 15:20:53 +0000 (UTC)
commit 420b171ed308d13f6b82abe96932b8f87c3d509c
Author: xpadulles <x padulles gmail com>
Date: Tue May 24 16:22:34 2022 +0200
Disabled FTDI detection for reding from CJ the load sensor
src/chronopic.cs | 4 +++-
src/chronopicRegister.cs | 3 ++-
2 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/src/chronopic.cs b/src/chronopic.cs
index 3df173a00..557518780 100644
--- a/src/chronopic.cs
+++ b/src/chronopic.cs
@@ -473,7 +473,9 @@ public static class ChronopicPorts
{
public static string [] GetPorts() {
if(UtilAll.GetOSEnum() == UtilAll.OperatingSystems.LINUX)
- return Directory.GetFiles("/dev/", "ttyUSB*");
+ //return Directory.GetFiles("/dev/", "ttyUSB*");
+ return Directory.GetFiles("/dev/", "ttyACM*");
+
else if(UtilAll.GetOSEnum() == UtilAll.OperatingSystems.MACOSX)
return Directory.GetFiles("/dev/", "tty.usbserial*");
else // WINDOWS
diff --git a/src/chronopicRegister.cs b/src/chronopicRegister.cs
index 57c1ae860..a3f426119 100644
--- a/src/chronopicRegister.cs
+++ b/src/chronopicRegister.cs
@@ -431,7 +431,8 @@ public class ChronopicRegisterLinux : ChronopicRegister
{
if (lineOut.Contains("ID_VENDOR=")) {
string [] strFull = lineOut.Split(new char[] {'='});
- crp.FTDI = (strFull[1] == "FTDI");
+ //crp.FTDI = (strFull[1] == "FTDI");
+ crp.FTDI = true;
} else if (lineOut.Contains("ID_SERIAL_SHORT=")) {
string [] strFull = lineOut.Split(new char[] {'='});
crp.SerialNumber = strFull[1];
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]