[chronojump] Fixed read triggers on forceSensor
- From: Xavier de Blas <xaviblas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump] Fixed read triggers on forceSensor
- Date: Tue, 13 Oct 2020 15:48:16 +0000 (UTC)
commit b05a0097b03a1b3e12aaf4d832bc6fb80b83c61e
Author: Xavier de Blas <xaviblas gmail com>
Date: Tue Oct 13 17:48:03 2020 +0200
Fixed read triggers on forceSensor
src/gui/app1/forceSensor.cs | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
---
diff --git a/src/gui/app1/forceSensor.cs b/src/gui/app1/forceSensor.cs
index 2fde5e7d..d794cfae 100644
--- a/src/gui/app1/forceSensor.cs
+++ b/src/gui/app1/forceSensor.cs
@@ -1249,12 +1249,16 @@ public partial class ChronoJumpWindow
//LogB.Information("force: " + strFull[1]);
}
else if(readTriggers)
+ {
+ time = Convert.ToInt32(strFull[0]);
trigger = strFull[1];
- else
+ return true;
+ } else
return false;
time = Convert.ToInt32(strFull[0]);
force = Convert.ToDouble(Util.ChangeDecimalSeparator(strFull[1]));
+
return true;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]