Index: firmware/App/Controllers/BloodFlow.c =================================================================== diff -u -rdb056b397b83a79a51516c7ff5e0164785ec4a4d -r5d833ae0f47c03ce23efba02ab593972d20f6ce0 --- firmware/App/Controllers/BloodFlow.c (.../BloodFlow.c) (revision db056b397b83a79a51516c7ff5e0164785ec4a4d) +++ firmware/App/Controllers/BloodFlow.c (.../BloodFlow.c) (revision 5d833ae0f47c03ce23efba02ab593972d20f6ce0) @@ -216,13 +216,9 @@ { rpmReadings[ i ] = 0.0F; } - rpmReadingsIdx = 0; - rpmReadingsTotal = 0.0; - rpmReadingsCount = 0; - filteredBloodPumpSpeed = 0.0; - - // Reset pump speed moving average and rotor count resetBloodPumpRPMMovingAverage(); + + // Reset pump rotor count resetBloodPumpRotorCount(); // Initialize blood flow PI controller @@ -270,7 +266,7 @@ // isFlowInrange = TRUE; // } #endif - // Verify flow rate of if the bypass flow limit has been enabled + // Verify flow rate valid if ( TRUE == isFlowInrange ) { resetBloodPumpRPMMovingAverage(); @@ -840,8 +836,8 @@ { rpmReadingsIdx = 0; rpmReadingsCount = 0; - rpmReadingsTotal = 0.0; - filteredBloodPumpSpeed = 0.0; + rpmReadingsTotal = 0.0F; + filteredBloodPumpSpeed = 0.0F; } /*********************************************************************//**