[chronojump] Added chronopicConnection diagram



commit 10d55396927c8cb1fec2e815d1665ed67b869687
Author: Xavier de Blas <xaviblas gmail com>
Date:   Tue Aug 30 15:14:06 2016 +0200

    Added chronopicConnection diagram

 diagrams/classes/chronopicConnection.dia |  Bin 0 -> 4483 bytes
 src/chronopicDetect.cs                   |    2 +-
 src/gui/chronojump.cs                    |    9 +++++++++
 3 files changed, 10 insertions(+), 1 deletions(-)
---
diff --git a/diagrams/classes/chronopicConnection.dia b/diagrams/classes/chronopicConnection.dia
new file mode 100644
index 0000000..13e6ff9
Binary files /dev/null and b/diagrams/classes/chronopicConnection.dia differ
diff --git a/src/chronopicDetect.cs b/src/chronopicDetect.cs
index d6070d6..d5a1d1d 100644
--- a/src/chronopicDetect.cs
+++ b/src/chronopicDetect.cs
@@ -281,7 +281,7 @@ public class ChronopicAutoDetect
                                /*
                                 * we are searching an encoder
                                 * if we arrived here, we know is not a normal chronopic
-                                * then wecan search safely for an encoder here
+                                * then we can search safely for an encoder here
                                 */
                                ChronopicAuto caEncoder = new ChronopicAutoCheckEncoder();
                                caEncoder.IsEncoder = true;    //for the bauds.
diff --git a/src/gui/chronojump.cs b/src/gui/chronojump.cs
index 23bb9e8..4c7e187 100644
--- a/src/gui/chronojump.cs
+++ b/src/gui/chronojump.cs
@@ -3355,9 +3355,14 @@ public partial class ChronoJumpWindow
                LogB.Information("change_multitest_firmware");
                label_chronopics_multitest.Text = "";
                
+
+               //---- 1 if is not connected, return
+               
                if(! chronopicWin.Connected)
                        return;
 
+               //---- 2 if port does not exists, show cp window and return
+
                //http://www.raspberrypi.org/forums/viewtopic.php?f=66&t=88415
                //https://bugzilla.xamarin.com/show_bug.cgi?id=15514
                if(! UtilAll.IsWindows ()) {
@@ -3403,6 +3408,8 @@ public partial class ChronoJumpWindow
                }
                */
 
+               //---- 3 try to communicate with multitest firmware (return if cannot connect)
+               
                LogB.Information("Trying method 2");
                bool isChronopicAuto = false;
                try {
@@ -3412,6 +3419,8 @@ public partial class ChronoJumpWindow
                        LogB.Information("Could not read from Chronopic with method 2");
                        return;
                }
+               
+               //---- 4 change 10 <-> 50 ms
 
                LogB.Information("change_multitest_firmware 3");
                if(isChronopicAuto) {


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