浏览代码

Correct workload

Kenneth van Ewijk 10 年之前
父节点
当前提交
c43d9091f7
共有 1 个文件被更改,包括 1 次插入3 次删除
  1. 1 3
      ErgometerIPR/ErgometerApplication/ErgometerTest.cs

+ 1 - 3
ErgometerIPR/ErgometerApplication/ErgometerTest.cs

@@ -33,8 +33,6 @@ namespace ErgometerApplication
             client.updateStepsText("U begint nu aan een warmup, probeer een tempo van 50 rpm aan te houden. De test gaat automatisch verder.");
 			workloads = new List<Workload>();
             MainClient.ComPort.Write("PW 25");
-            
-            Console.WriteLine(CalculateVOMax());
         }
 
         public void timerTick()
@@ -199,7 +197,7 @@ namespace ErgometerApplication
 
         private int GetCurrentWorkload()
         {
-            return workloads.Count - 1;
+            return workloads.Count + 1;
         }
 
         private double CalculateMaximumHeartRate()