scaling eqn wrong in c function
This commit is contained in:
parent
d7a6e84469
commit
d1c0586e3b
@ -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 */
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user