Index: firmware/App/Monitors/Conductivity.c =================================================================== diff -u -r764e0e8c7a889f72a9b6bdced9ef08a09d72b36e -rb110edbfea44736075d89212a7529df6df64e521 --- firmware/App/Monitors/Conductivity.c (.../Conductivity.c) (revision 764e0e8c7a889f72a9b6bdced9ef08a09d72b36e) +++ firmware/App/Monitors/Conductivity.c (.../Conductivity.c) (revision b110edbfea44736075d89212a7529df6df64e521) @@ -40,6 +40,7 @@ #define SIZE_OF_FLOW_ROLLING_AVG ( CONDUCTIVITY_SAMPLE_FILTER_MS / TASK_PRIORITY_INTERVAL ) ///< Filtered conductivity moving average sample count. #define SIZE_OF_FLOW_TEMP_ROLLING_AVG ( CONDUCTIVITY_TEMP_SAMPLE_FILTER_MS / TASK_PRIORITY_INTERVAL ) ///< Filtered conductivity temprature moving average sample count. #define RO_RR_MOVING_AVG_NUM_OF_SAMPLES 300 ///< RO rejection ratio moving average number of samples. +#define FRACTION_TO_PERCENT_CONVERSION_FACTOR 100.0F ///< RO rejection ratio factor to percentage conversion factor value /// Filter conductivity readings record. typedef struct @@ -327,7 +328,7 @@ if ( fabs(feedConductivity) >= NEARLY_ZERO ) { - roRejectionRatio = 100.0F * ( ( feedConductivity - permeateConductivity ) / feedConductivity ); + roRejectionRatio = FRACTION_TO_PERCENT_CONVERSION_FACTOR * ( ( feedConductivity - permeateConductivity ) / feedConductivity ); } if ( getCurrentGenPermeateState() == FP_GENP_TANK_FILL_STATE ) {