[chronojump] ArduinoCapture gets version on connect



commit e5ae279c8ccd5a4968235f0c8d69a3daaa945dee
Author: Xavier de Blas <xaviblas gmail com>
Date:   Tue Sep 28 16:00:19 2021 +0200

    ArduinoCapture gets version on connect

 src/execute/arduinoCapture.cs | 5 +++++
 1 file changed, 5 insertions(+)
---
diff --git a/src/execute/arduinoCapture.cs b/src/execute/arduinoCapture.cs
index c5d994469..1592ce5c5 100644
--- a/src/execute/arduinoCapture.cs
+++ b/src/execute/arduinoCapture.cs
@@ -78,6 +78,11 @@ public abstract class ArduinoCapture
                //just print on gui somthing like "please, wait, ..."
                //
                Thread.Sleep(3000); //sleep to let arduino start reading serial event
+
+               if(! sendCommand("local:get_version;", "error getting version"))
+                       return false;
+               waitResponse("Wifi-Controller");
+
                return true;
        }
 


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