peak detection

Dependents:   mbed-test-i2c-PCA-biquad-peakdet Mix-code-v2 mbed-os-step-counting the-lastest-code

Revision:
2:6500ec04a6a1
Parent:
1:d1dac3b2692a
--- a/peak.cpp	Mon Nov 25 23:36:28 2019 +0000
+++ b/peak.cpp	Mon Nov 25 23:44:10 2019 +0000
@@ -81,8 +81,8 @@
     
     threshold = *min_element(valMax.begin(),valMax.end())* 0.3;
     
-    printf("height in peak: %f\n\r", height);
-    printf("threshold: %f\n\r", threshold);
+    //printf("height in peak: %f\n\r", height);
+    //printf("threshold: %f\n\r", threshold);
     
     if(height > 0.1001)
     {