[chronojump] Minor changes reading forcePlatform
- From: Xavier de Blas <xaviblas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump] Minor changes reading forcePlatform
- Date: Tue, 31 Jul 2018 11:48:29 +0000 (UTC)
commit 4d23c3d59402d62634a7dd8d5a88cbc30aff0cba
Author: Xavier de Blas <xaviblas gmail com>
Date: Tue Jul 31 13:47:38 2018 +0200
Minor changes reading forcePlatform
src/forcePlatform.cs | 11 +++++++++--
1 file changed, 9 insertions(+), 2 deletions(-)
---
diff --git a/src/forcePlatform.cs b/src/forcePlatform.cs
index db4a6fac..0b413cb1 100644
--- a/src/forcePlatform.cs
+++ b/src/forcePlatform.cs
@@ -76,12 +76,19 @@ public class ForcePlatform
{
LogB.Information("Serial port opened. Start reading");
- for(int i = 0; i < 100; i ++)
+ writer.WriteLine("S1;S2;S3;S4");
+ for(int i = 0; i < 400; i ++)
{
if(readRowMark())
readForceValues();
else
LogB.Information("problem reading row mark");
+
+ /*
+ int b = sp.ReadByte();
+ LogB.Information(b.ToString());
+ writer.WriteLine(b.ToString());
+ */
}
}
@@ -116,7 +123,7 @@ public class ForcePlatform
private void printDataRow(List<int> dataRow)
{
- string row = string.Format("{0}:{1}:{2}:{3}", dataRow[0], dataRow[1], dataRow[2], dataRow[3]);
+ string row = string.Format("{0};{1};{2};{3}", dataRow[0], dataRow[1], dataRow[2], dataRow[3]);
LogB.Information("DataRow: " + row);
if(saveToFile)
writer.WriteLine(row);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]