Index: firmware/App/Monitors/Conductivity.c =================================================================== diff -u -r76ede35cf15c9310c2915151f1d47998f22b71de -r2869d16c34888bec55bded3b8aefd0203f56d3b0 --- firmware/App/Monitors/Conductivity.c (.../Conductivity.c) (revision 76ede35cf15c9310c2915151f1d47998f22b71de) +++ firmware/App/Monitors/Conductivity.c (.../Conductivity.c) (revision 2869d16c34888bec55bded3b8aefd0203f56d3b0) @@ -104,6 +104,7 @@ ddConductivityPublishTimerCounter = DATA_PUBLISH_COUNTER_START_COUNT; fpConductivityPublishTimerCounter = DATA_PUBLISH_COUNTER_START_COUNT; + roRRPublishTimerCounter = DATA_PUBLISH_COUNTER_START_COUNT; roRejectionRatio = 0.0F; roRejectionRatioTankFill = 0.0F; roRRRunningSum = 0.0F; @@ -363,7 +364,7 @@ F32 roRR = getRORejectonRatio(); roRRSamples[ roRRSamplesNextIndex ] = roRR; - roRRRunningSum = roRR; + roRRRunningSum += roRR; roRRSamplesNextIndex = INC_WRAP( roRRSamplesNextIndex, 0, RO_RR_MOVING_AVG_NUM_OF_SAMPLES - 1 ); roRRCount = INC_CAP( roRRCount, RO_RR_MOVING_AVG_NUM_OF_SAMPLES ); roRRAvg.data = roRRRunningSum / (F32)roRRCount; @@ -468,7 +469,7 @@ } // publish ro rejection ratio data on interval - if ( roRRPublishTimerCounter >= getU32OverrideValue( &roRRDataPublishInterval ) ) + if ( ++roRRPublishTimerCounter >= getU32OverrideValue( &roRRDataPublishInterval ) ) { RO_REJECTION_RATIO_DATA_T data;