[chronojump] Fix in last commit
- From: Xavier de Blas <xaviblas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump] Fix in last commit
- Date: Tue, 18 Jun 2019 10:17:53 +0000 (UTC)
commit 87d61f2483fe3e1bb4c1dc9536e3644eb3b5b35c
Author: Xavier de Blas <xaviblas gmail com>
Date: Tue Jun 18 12:17:39 2019 +0200
Fix in last commit
src/gui/runEncoder.cs | 23 +++++++++++------------
1 file changed, 11 insertions(+), 12 deletions(-)
---
diff --git a/src/gui/runEncoder.cs b/src/gui/runEncoder.cs
index 24405852..c1bfbef1 100644
--- a/src/gui/runEncoder.cs
+++ b/src/gui/runEncoder.cs
@@ -343,18 +343,6 @@ public partial class ChronoJumpWindow
));
}
- LogB.Information("Processing last received line");
- str = readFromRunEncoderIfDataArrived();
- if(checkRunEncoderCaptureLineIsOk(str))
- {
- string [] strFull = str.Split(new char[] {';'});
- writer.WriteLine(string.Format("{0};{1};{2}",
- Convert.ToInt32(strFull[0]), //pulse
- Convert.ToInt32(strFull[1]), //time
- Convert.ToInt32(strFull[2]) //force
- ));
- }
-
LogB.Information(string.Format("FINISHED WITH conditions: {0}-{1}-{2}",
runEncoderProcessFinish, runEncoderProcessCancel,
runEncoderProcessError));
LogB.Information("Calling end_capture");
@@ -371,6 +359,17 @@ public partial class ChronoJumpWindow
Thread.Sleep(10);
try {
str = portRE.ReadLine();
+
+ if(checkRunEncoderCaptureLineIsOk(str))
+ {
+ LogB.Information("Processing last received line");
+ string [] strFull = str.Split(new char[] {';'});
+ writer.WriteLine(string.Format("{0};{1};{2}",
+ Convert.ToInt32(strFull[0]), //pulse
+ Convert.ToInt32(strFull[1]), //time
+ Convert.ToInt32(strFull[2]) //force
+ ));
+ }
} catch {
LogB.Information("Catched waiting end_capture feedback");
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]