diff --git a/ErgometerIPR/ErgometerApplication/ClientApplicatie.cs b/ErgometerIPR/ErgometerApplication/ClientApplicatie.cs index ab5f1b5..40b2417 100644 --- a/ErgometerIPR/ErgometerApplication/ClientApplicatie.cs +++ b/ErgometerIPR/ErgometerApplication/ClientApplicatie.cs @@ -107,10 +107,12 @@ namespace ErgometerApplication panelTopBar.Visible = true; panelClientContainer.BringToFront(); chat = panelClientChat; - ergotest = new ErgometerTest(gewicht, lengte, leeftijd, geslacht, this); MainClient.ComPort.Write("RS"); MainClient.ComPort.Read(); Thread.Sleep(200); + MainClient.ComPort.Write("CM"); + MainClient.ComPort.Read(); + ergotest = new ErgometerTest(gewicht, lengte, leeftijd, geslacht, this); updateTimer.Start(); } diff --git a/ErgometerIPR/ErgometerApplication/MainClient.cs b/ErgometerIPR/ErgometerApplication/MainClient.cs index 6db5d5b..75a57d8 100644 --- a/ErgometerIPR/ErgometerApplication/MainClient.cs +++ b/ErgometerIPR/ErgometerApplication/MainClient.cs @@ -230,6 +230,7 @@ namespace ErgometerApplication private static void ParseValueSet(NetCommand command) { + return; switch(command.Value) { case NetCommand.ValueType.DISTANCE: