And another commit with bugfixes...

This commit is contained in:
Aareschluchtje
2015-09-28 18:51:52 +02:00
parent 5ee3b5236e
commit b7e957f9a3
@@ -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();
}
}