Index: firmware/App/Modes/SelfTests.c =================================================================== diff -u -rbb114842e73659f097bb8b8ec0d670bfa4f8cb73 -r125a27d5a3a116e7b7473ff180daf247270d8e57 --- firmware/App/Modes/SelfTests.c (.../SelfTests.c) (revision bb114842e73659f097bb8b8ec0d670bfa4f8cb73) +++ firmware/App/Modes/SelfTests.c (.../SelfTests.c) (revision 125a27d5a3a116e7b7473ff180daf247270d8e57) @@ -82,12 +82,10 @@ // ********** private data ********** -static BOOL noCartSelfTestsResult; ///< Result of no cartridge self-tests. static NO_CART_SELF_TESTS_STATE_T currentNoCartSelfTestsState; ///< Current state of the no cartridge self-tests state machine. static U32 runPumpStartTime; ///< Beginning time when pumps start running static BOOL havePumpsStarted; ///< Flag indicates pumps have started running for self-test. -static BOOL drySelfTestsResult; ///< Result of dry self-tests. static DRY_SELF_TESTS_STATE_T currentDrySelfTestsState; ///< Current state of the dry self-tests state machine. static U32 pressureSelfTestBloodPumpRunStartTime; ///< Pressure dry self-test blood pump runs start time. static U32 pressureSelfTestNormalizedStartTime; ///< Normalized pressure dry self-test start time. @@ -199,7 +197,6 @@ *************************************************************************/ void transitionToNoCartSelfTests( void ) { - noCartSelfTestsResult = FALSE; currentNoCartSelfTestsState = NO_CART_SELF_TESTS_START_STATE; runPumpStartTime = 0; havePumpsStarted = FALSE; @@ -212,7 +209,7 @@ * The execNoCartSelfTests function executes the no cartridge self-tests * state machine. * @details Inputs: currentNoCartSelfTestsState - * @details Outputs: currentNoCartSelfTestsState, noCartSelfTestsResult + * @details Outputs: currentNoCartSelfTestsState * @return none *************************************************************************/ void execNoCartSelfTests( void ) @@ -269,7 +266,6 @@ break; case NO_CART_SELF_TESTS_COMPLETE_STATE: - noCartSelfTestsResult = TRUE; break; default: @@ -300,18 +296,6 @@ /*********************************************************************//** * @brief - * The isNoCartSelfTestsPassed function returns the status of no cartridge self-tests. - * @details Inputs: none - * @details Outputs: none - * @return TRUE if no cartridge self-tests passed, otherwise FALSE - *************************************************************************/ -BOOL isNoCartSelfTestsPassed( void ) -{ - return noCartSelfTestsResult; -} - -/*********************************************************************//** - * @brief * The transitionToDrySelfTests function resets anything required before * the start of dry self-tests. * @details Inputs: none @@ -320,7 +304,6 @@ *************************************************************************/ void transitionToDrySelfTests() { - drySelfTestsResult = FALSE; currentDrySelfTestsState = DRY_SELF_TESTS_START_STATE; pressureSelfTestBloodPumpRunStartTime = 0; pressureSelfTestNormalizedStartTime = 0; @@ -334,7 +317,7 @@ * @brief * The execDrySelfTests function executes the dry self-tests state machine. * @details Inputs: currentDrySelfTestsState - * @details Outputs: currentDrySelfTestsState, drySelfTestsResult + * @details Outputs: currentDrySelfTestsState * @return none *************************************************************************/ void execDrySelfTests( void ) @@ -389,7 +372,6 @@ break; case DRY_SELF_TESTS_COMPLETE_STATE: - drySelfTestsResult = TRUE; break; default: @@ -422,21 +404,8 @@ return (U32)currentDrySelfTestsState; } - /*********************************************************************//** * @brief - * The isDrySelfTestsPassed function returns the status of dry self-tests. - * @details Inputs: none - * @details Outputs: none - * @return TRUE if dry self-tests passed, otherwise FALSE - *************************************************************************/ -BOOL isDrySelfTestsPassed( void ) -{ - return drySelfTestsResult; -} - -/*********************************************************************//** - * @brief * The transitionToWetSelfTests function resets anything required before * the start of wet self-tests. * @details Inputs: none