Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: nRF51822
Diff: Source/main.h
- 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