aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--PICCode.X/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/PICCode.X/main.c b/PICCode.X/main.c
index 88d3f35..98b5203 100644
--- a/PICCode.X/main.c
+++ b/PICCode.X/main.c
@@ -75,7 +75,7 @@ void setup (void) {
double VtoI(float value) {
//TODO: Verify this. I've done a few and the error seems to be no more than 0.5 mA
//MAKE SURE THE ERROR IS NEVER >=1.0mA (as per project description)
- return (double) ((value + 0.204) / 0.032);
+ return (double) ((value + 0.202) / 0.036);
}
int main(void) {