diff options
author | Matthew Strapp <matt@mattstrapp.net> | 2021-04-25 14:58:50 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-25 14:58:50 -0500 |
commit | 6d50c49c1badf38a4f6d405f90b66b4bfc1d0452 (patch) | |
tree | 4bc17d555a75cf18853345987a10ed665b4daadd | |
parent | Get rid of duplicate "and" (diff) | |
download | ee3102-6d50c49c1badf38a4f6d405f90b66b4bfc1d0452.tar ee3102-6d50c49c1badf38a4f6d405f90b66b4bfc1d0452.tar.gz ee3102-6d50c49c1badf38a4f6d405f90b66b4bfc1d0452.tar.bz2 ee3102-6d50c49c1badf38a4f6d405f90b66b4bfc1d0452.tar.lz ee3102-6d50c49c1badf38a4f6d405f90b66b4bfc1d0452.tar.xz ee3102-6d50c49c1badf38a4f6d405f90b66b4bfc1d0452.tar.zst ee3102-6d50c49c1badf38a4f6d405f90b66b4bfc1d0452.zip |
Update main.c
Change slope and intercept
-rw-r--r-- | PICCode.X/main.c | 2 |
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) { |