[chronojump] Fixed forceSensor readVersion (it always readed 0.3)
- From: Xavier de Blas <xaviblas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump] Fixed forceSensor readVersion (it always readed 0.3)
- Date: Tue, 13 Oct 2020 15:48:16 +0000 (UTC)
commit ce2bb25341c24d488f1d4cb1cc8a63368d2df3fd
Author: Xavier de Blas <xaviblas gmail com>
Date: Tue Oct 13 17:47:40 2020 +0200
Fixed forceSensor readVersion (it always readed 0.3)
src/gui/app1/forceSensor.cs | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)
---
diff --git a/src/gui/app1/forceSensor.cs b/src/gui/app1/forceSensor.cs
index 2b727c1d..2fde5e7d 100644
--- a/src/gui/app1/forceSensor.cs
+++ b/src/gui/app1/forceSensor.cs
@@ -756,8 +756,11 @@ public partial class ChronoJumpWindow
*/
Match match = Regex.Match(str, @"Force_Sensor-(\d+\.\d+)");
- if(match.Groups.Count == 1)
- return str = match.Value;
+ if(match.Groups.Count == 2)
+ {
+ LogB.Information("match: " + match.Groups[1].Value);
+ return str = match.Groups[1].Value;
+ }
else
return "0.3"; //if there is a problem default to 0.3
}
@@ -1104,6 +1107,9 @@ public partial class ChronoJumpWindow
if(versionDouble >= Convert.ToDouble(Util.ChangeDecimalSeparator("0.5"))) //from 0.5 versions
have trigger
readTriggers = true;
+ LogB.Information("forceSensor versionDouble: " + versionDouble.ToString());
+ //LogB.Information("> 0.5" + (versionDouble >=
Convert.ToDouble(Util.ChangeDecimalSeparator("0.5"))).ToString());
+
//LogB.Information("pre bucle");
//LogB.Information(string.Format("forceProcessFinish: {0}, forceProcessCancel: {1},
forceProcessError: {2}", forceProcessFinish, forceProcessCancel, forceProcessError));
while(! forceProcessFinish && ! forceProcessCancel && ! forceProcessError)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]