From d1c0586e3b9466a9961cd5e0ba7a68fdd687906f Mon Sep 17 00:00:00 2001 From: "Robin P. Clark" Date: Wed, 18 Sep 2013 18:24:09 +0100 Subject: [PATCH] scaling eqn wrong in c function --- submission_thesis/CH6_Software_Examples/software.tex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/submission_thesis/CH6_Software_Examples/software.tex b/submission_thesis/CH6_Software_Examples/software.tex index de20b77..a5df49e 100644 --- a/submission_thesis/CH6_Software_Examples/software.tex +++ b/submission_thesis/CH6_Software_Examples/software.tex @@ -316,7 +316,7 @@ int read_4_20_input ( int * value ) { error_flag = 1; /* Error flag set to TRUE */ } else { - *value = (input_volts - 0.88) * ( 4.4 - 0.88 ) * 999.0; + *value = ((input_volts - 0.88) / ( 4.4 - 0.88 )) * 999.0; error_flag = 0; /* indicate current input in range */ }