app critics will say it's money, cash, toes

Revision:
14:aa0029dbb3e2
Parent:
13:99ed8a3db67a
Child:
15:a502564c7a88
--- a/source/main.cpp	Mon Nov 12 16:27:10 2018 +0000
+++ b/source/main.cpp	Tue Nov 13 18:49:21 2018 +0000
@@ -65,10 +65,10 @@
     double sum_acc = sqr_acc_x + sqr_acc_y + sqr_acc_z;
     double accel = sqrt(sum_acc);
 
-    printf("calback cycles: " );
-    printf("%i\n", callback_cycles);  
+    //printf("calback cycles: " );
+    //printf("%i\n", callback_cycles);  
      
-    if (accel < step_threshold && oldAcceleration >= step_threshold && (callback_cycles > 4)) {
+    if (accel < step_threshold && oldAcceleration >= step_threshold && (callback_cycles > 3)) {
         step = 1;
         callback_cycles = 0;
     }
@@ -76,8 +76,8 @@
     oldAcceleration = accel;
     
     hrmCounter = (short) step;
-    printf("STEP: " );
-    printf("%hu\n", hrmCounter);  
+    //printf("STEP: " );
+    //printf("%hu\n", hrmCounter);  
     
     hrService->updateHeartRate(hrmCounter);
 }