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: mbed
Diff: src/adc.cpp
- Revision:
- 17:454afe56eedb
- Parent:
- 12:fd1fd1857628
- Child:
- 18:78e982f31c6b
--- a/src/adc.cpp Wed Dec 12 00:10:03 2018 +0000
+++ b/src/adc.cpp Thu Dec 13 21:58:28 2018 +0000
@@ -33,6 +33,12 @@
void initADC(void){
+ struct adcValues adcVals = getADCresults();
+
+ CURRENT_48_OFFSET = adcVals.i48;
+ CURRENT_24_OFFSET = adcVals.i24;
+ CURRENT_12_OFFSET = adcVals.i12;
+
}
/*******************************************************************************