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.cpp
- Revision:
- 37:0cb0a0b22b99
- Parent:
- 35:e8fa201fe147
- Child:
- 38:4b06a103c044
diff -r f76a7b956f52 -r 0cb0a0b22b99 Source/main.cpp
--- a/Source/main.cpp	Tue Oct 01 16:27:28 2019 +0000
+++ b/Source/main.cpp	Fri Dec 13 18:43:55 2019 +0000
@@ -106,10 +106,12 @@
 {
 #if TEST_ON_NRF51_DK == 0   
     vdd_enable = 1; // enable analog power
-    wait(0.00075);
+    //wait(0.00075);
+    wait(0.0035);  // increase wait time to allow full settling - FTD 11/21/2019
     off_reading = adc_read(ADC_CHAN_CAP_SENSE,2);
     cap_sense_led = 1; // enable led
     wait(0.00075);
+    //wait(0.001);  // increase wait time to allow full settling - FTD 11/21/2019
     on_reading = adc_read(ADC_CHAN_CAP_SENSE,2);
     // turn everything off
     cap_sense_led = 0;