[chronojump] Fixed RaceAnalyzer was not detecting properly firmware version. was 0.3 always, no problem.
- From: Xavier de Blas <xaviblas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump] Fixed RaceAnalyzer was not detecting properly firmware version. was 0.3 always, no problem.
- Date: Tue, 26 Apr 2022 15:20:58 +0000 (UTC)
commit b9f9e07b6358fb52657b02a791613770e0c4328f
Author: Xavier de Blas <xaviblas gmail com>
Date: Tue Apr 26 17:20:15 2022 +0200
Fixed RaceAnalyzer was not detecting properly firmware version. was 0.3 always, no problem.
src/gui/app1/runEncoder.cs | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/gui/app1/runEncoder.cs b/src/gui/app1/runEncoder.cs
index 8cbddc480..6d2610e7e 100644
--- a/src/gui/app1/runEncoder.cs
+++ b/src/gui/app1/runEncoder.cs
@@ -276,7 +276,7 @@ public partial class ChronoJumpWindow
LogB.Information("catched! checking version");
return "";
}
- LogB.Information("init string: " + str);
+ LogB.Information(string.Format("init string: |{0}|", str));
}
while(! str.Contains("Race_Analyzer-"));
@@ -290,8 +290,8 @@ public partial class ChronoJumpWindow
* init string: ^@;Race_analyzer-0.3
*/
Match match = Regex.Match(str, @"Race_Analyzer-(\d+\.\d+)");
- if(match.Groups.Count == 1)
- return str = match.Value;
+ if(match.Groups.Count == 2)
+ return str = match.Groups[1].ToString();
else
return "0.3"; //if there is a problem default to 0.3. 0.2 was the first that will be
distributed and will be on binary. 0.3 has the byte of encoderOrRCA
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]