Index: firmware/App/Controllers/BloodLeak.c =================================================================== diff -u -rfcfcd7619185b71aa2163c3e22e4b7bff730041c -r1dd2d175ac3619bcf1c5c4c5ab863f487eb7090f --- firmware/App/Controllers/BloodLeak.c (.../BloodLeak.c) (revision fcfcd7619185b71aa2163c3e22e4b7bff730041c) +++ firmware/App/Controllers/BloodLeak.c (.../BloodLeak.c) (revision 1dd2d175ac3619bcf1c5c4c5ab863f487eb7090f) @@ -1683,7 +1683,7 @@ bloodLeakZeroingStatus.rawIntensity[ index ] = newIntensity; bloodLeakZeroingStatus.intensityRunningSum = bloodLeakZeroingStatus.intensityRunningSum - indexValue + newIntensity; - bloodLeakZeroingStatus.intensityMovingAverage = bloodLeakZeroingStatus.intensityRunningSum / BLD_ZERO_MVG_AVG_NUM_OF_SAMPLES; + bloodLeakZeroingStatus.intensityMovingAverage = (F32)bloodLeakZeroingStatus.intensityRunningSum / (F32)BLD_ZERO_MVG_AVG_NUM_OF_SAMPLES; bloodLeakZeroingStatus.rawIntensityNextIndex = INC_WRAP( index, 0, BLD_ZERO_MVG_AVG_NUM_OF_SAMPLES - 1 ); } }