Easy Training / Training

Dependents:   Easyfit

Revision:
7:e74e7496ac8c
Parent:
6:f117c1cc9640
--- a/training.cpp	Tue May 26 16:09:49 2020 +0000
+++ b/training.cpp	Wed May 27 19:19:24 2020 +0000
@@ -67,7 +67,7 @@
 
     dist = sqrt(pow(temp_pos[0],2)+pow(temp_pos[1],2)+pow(temp_pos[2],2));
 
-    if(dist>= POSTOL) {                                                         // counts position fail
+    if(dist>= POSTOL && (resetval!= 1)) {                                                         // counts position fail
         fail_pos++;
         resetval = 3;
     }