From b7e957f9a326efca5a8f53da990c78c9a56d4a3f Mon Sep 17 00:00:00 2001 From: Aareschluchtje Date: Mon, 28 Sep 2015 18:51:52 +0200 Subject: [PATCH] And another commit with bugfixes... --- ErgometerApplication/ErgometerApplication/Ergometer.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ErgometerApplication/ErgometerApplication/Ergometer.cs b/ErgometerApplication/ErgometerApplication/Ergometer.cs index 6419a7b..ce10b12 100644 --- a/ErgometerApplication/ErgometerApplication/Ergometer.cs +++ b/ErgometerApplication/ErgometerApplication/Ergometer.cs @@ -107,8 +107,10 @@ namespace ErgometerApplication comPort.Write("ST"); string response = comPort.Read(); Console.WriteLine(response); - Meting m = Meting.Parse(response); + Meting m = Meting.Parse(response, '\t'); + Console.WriteLine(m); SaveData(m); + communicator.data.Add(m); command = new NetCommand(m, communicator.sessionId); communicator.writer.WriteLine(command.ToString()); richTextBox1.Text = m.ToString(); @@ -160,6 +162,7 @@ namespace ErgometerApplication richTextBox1.Text = m.ToString(); command = new NetCommand(communicator.data[0], communicator.sessionId); communicator.writer.WriteLine(command.ToString()); + communicator.writer.Flush(); } }