Merck / Mbed OS SmartCap_OS5

Dependencies:   nRF51822

Revision:
49:d2bd9056426e
Parent:
48:bb7d5118e03c
Child:
50:8dca54c1e3fd
--- a/Source/main.h	Wed Sep 02 19:11:28 2020 +0000
+++ b/Source/main.h	Thu Sep 03 17:17:59 2020 +0000
@@ -20,7 +20,7 @@
 #define CAP_THRESHOLD_OFF      12 // Cap off threshold.  Higher value means it triggers more easily
 #define CAP_THRESHOLD_OFF_EOL   25 // Cap off threshold for EOL to ensure bluetooth advertising - FTD 08212020
 
-#define CAP_THRESHOLD_OFF_INITIAL 10 // initial value of adaptive cap_off threshold
+#define CAP_THRESHOLD_OFF_INITIAL 15 // initial value of adaptive cap_off threshold (Must be higher than CAPTHRESHOLD_OFF)
 #define CAP_THRESHOLD_ADAPT_RATE  192 // How fast the thresholf adapts. number 0 to 256. 256 means adapt immediately, 0 means no adapt.
 #define CAP_THRESHOLD_PERCENT_OF_PEAK  192 // What fraction of the peak on-off cap reading is used for the threshold. %*256, so 85% is .85*256=218