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:
- 30:d8721a46ee03
- Parent:
- 25:8bcc8bea0e31
- Child:
- 33:6c7364ea360f
--- a/src/adc.cpp Tue Mar 05 19:21:32 2019 +0000
+++ b/src/adc.cpp Wed Mar 06 22:32:31 2019 +0000
@@ -132,7 +132,6 @@
dvals.v48f = VOLTAGE_48_FACTOR*avals.v48;
dvals.v24f = VOLTAGE_24_FACTOR*avals.v24;
dvals.v12f = VOLTAGE_12_FACTOR*avals.v12;
- //dvals.i48f = ((avals.i48-CURRENT_48_OFFSET)/CURRENT_48_DIV_FACTOR)-CURRENT_CONTROL_OFFSET;
// The adc results are linear above CURRENT_48_DIV_THRESH5. Only apply a linear correction to it above that threshold.
// The multiple correction factors below CURRENT_48_DIV_THRESH5 linearize the curve below CURRENT_48_DIV_THRESH5.
@@ -168,7 +167,6 @@
dvals.i12f = (avals.i12-CURRENT_12_OFFSET)/CURRENT_12_DIV_FACTOR0;
}
}else{
- //dvals.v48f = 1.0*avals.v48-CURRENT_CONTROL_OFFSET;
dvals.v48f = 1.0*avals.v48;
dvals.v24f = 1.0*avals.v24;
dvals.v12f = 1.0*avals.v12;