[chronojump] Better messages on firmware multitest check



commit b6d886e5618f8cc6b971cfdb3bf5155c5dc8da48
Author: Xavier de Blas <xaviblas gmail com>
Date:   Mon Nov 10 11:21:19 2014 +0100

    Better messages on firmware multitest check

 src/chronopic.cs     |    4 ++--
 src/gui/chronopic.cs |    5 ++++-
 2 files changed, 6 insertions(+), 3 deletions(-)
---
diff --git a/src/chronopic.cs b/src/chronopic.cs
index 5167397..801e37a 100644
--- a/src/chronopic.cs
+++ b/src/chronopic.cs
@@ -452,7 +452,7 @@ public abstract class ChronopicAuto
                } catch {
                        //this.error=ErrorType.Timeout;
                        Console.WriteLine("Error or Timeout. This is not Chronopic-Automatic-Firmware");
-                       str = "Error";
+                       str = "Error / not Multitest firmware";
                }
                
                return str;
@@ -471,7 +471,7 @@ public abstract class ChronopicAuto
                } catch {
                        //this.error=ErrorType.Timeout;
                        Console.WriteLine("Error or Timeout. This is not Chronopic-Automatic-Firmware");
-                       str = "Error";
+                       str = "Error / not Multitest firmware";
                }
                
                return str;
diff --git a/src/gui/chronopic.cs b/src/gui/chronopic.cs
index 632cd32..c40652e 100644
--- a/src/gui/chronopic.cs
+++ b/src/gui/chronopic.cs
@@ -740,7 +740,10 @@ Log.WriteLine("bbb");
        private void on_button_auto_change_debounce_clicked (object o, EventArgs args)
        {
                ChronopicAuto ca = new ChronopicAutoChangeDebounce();
-               label_auto_change_debounce.Text = ca.Write(sp, (int) spin_auto_change_debounce.Value);
+               ca.Write(sp, (int) spin_auto_change_debounce.Value);
+               
+               ca = new ChronopicAutoCheckDebounce();
+               label_auto_change_debounce.Text = ca.Read(sp);
        }       
        
        private void on_button_auto_check_help_clicked (object o, EventArgs args) 


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