[chronojump] More time to detect RaceAnalyzer on MicroDiscover



commit 7a49379d04e4719b19ce2576a2a16e8aa9df2644
Author: Xavier de Blas <xaviblas gmail com>
Date:   Tue May 10 18:29:52 2022 +0200

    More time to detect RaceAnalyzer on MicroDiscover

 src/execute/arduinoCapture.cs | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/src/execute/arduinoCapture.cs b/src/execute/arduinoCapture.cs
index 902ad767e..3695a1ef8 100644
--- a/src/execute/arduinoCapture.cs
+++ b/src/execute/arduinoCapture.cs
@@ -715,7 +715,8 @@ public class MicroDiscover : MicroComms
                List<string> responseExpected_l = new List<string>();
                responseExpected_l.Add(raceAnalyzerStr);
 
-               if(getVersionNTimes ("get_version:", responseExpected_l, false, 2, 500))
+               Thread.Sleep(1500); //raceAnalyzer wait 1500 ms after open to be able to receive commands
+               if(getVersion ("get_version:", responseExpected_l, false, 2000))
                {
                        LogB.Information("Discover found this device: " + micro.Response);
                        if(micro.Response.Contains(raceAnalyzerStr))


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