Selaa lähdekoodia

Fix power not being set

Kenneth van Ewijk 10 vuotta sitten
vanhempi
commit
71bff3dc73

+ 3 - 1
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();
             
         }

+ 1 - 0
ErgometerIPR/ErgometerApplication/MainClient.cs

@@ -230,6 +230,7 @@ namespace ErgometerApplication
 
         private static void ParseValueSet(NetCommand command)
         {
+            return;
             switch(command.Value)
             {
                 case NetCommand.ValueType.DISTANCE: