[chronojump/FS-TFT-Menu] Fixed RaceAnalyzer was not detecting properly firmware version. was 0.3 always, no problem.
- From: Xavier Padullés <xpadulles src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump/FS-TFT-Menu] Fixed RaceAnalyzer was not detecting properly firmware version. was 0.3 always, no problem.
- Date: Wed, 27 Apr 2022 17:18:05 +0000 (UTC)
commit c84ec05519553a47f21d61c98dc13f0c37c70d75
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]