Index: firmware/App/Controllers/BloodFlow.c =================================================================== diff -u -raf2cd84d3319b1e298057fe2d329aa7824306507 -rf89cac0c61f0068c045411504925373c3731c874 --- firmware/App/Controllers/BloodFlow.c (.../BloodFlow.c) (revision af2cd84d3319b1e298057fe2d329aa7824306507) +++ firmware/App/Controllers/BloodFlow.c (.../BloodFlow.c) (revision f89cac0c61f0068c045411504925373c3731c874) @@ -1610,7 +1610,28 @@ return result; } +/*********************************************************************//** + * @brief + * The testResetBloodPumpRotorCountOverride function resets the override + * of the blood pump rotor counter. + * @details Inputs: none + * @details Outputs: bloodPumpRotorCounter + * @return TRUE if reset successful, FALSE if not + *************************************************************************/ +BOOL testResetBloodPumpRotorCountOverride( void ) +{ + BOOL result = FALSE; + if ( TRUE == isTestingActivated() ) + { + result = TRUE; + bloodPumpRotorCounter.override = OVERRIDE_RESET; + bloodPumpRotorCounter.ovData = bloodPumpRotorCounter.ovInitData; + } + + return result; +} + /*********************************************************************//** * @brief * The testSetDialInPumpTargetDutyCycle function resets the override of the @@ -1625,7 +1646,7 @@ if ( TRUE == isTestingActivated() ) { - targetDialInFlowRate = (S32) BP_ML_PER_MIN_FROM_PWM( value ); + targetBloodFlowRate = (S32) BP_ML_PER_MIN_FROM_PWM( value ); result = TRUE; }