Index: firmware/App/Controllers/DialInFlow.c =================================================================== diff -u -r9e6abdf44f5cac7fd713655616a46544016750a1 -rcf0f5e54c1a7af4d8a739cbd677d899d95e4019b --- firmware/App/Controllers/DialInFlow.c (.../DialInFlow.c) (revision 9e6abdf44f5cac7fd713655616a46544016750a1) +++ firmware/App/Controllers/DialInFlow.c (.../DialInFlow.c) (revision cf0f5e54c1a7af4d8a739cbd677d899d95e4019b) @@ -398,6 +398,21 @@ return isDialInPumpOn; } +/*********************************************************************//** + * @brief + * The isDialInPumpRampComplete function returns whether the dialysate inlet pump has + * completed its ramp up and entered control state (closed or open loop). + * @details Inputs: dialInPumpState + * @details Outputs: none + * @return TRUE if pump is in control state, FALSE if not + *************************************************************************/ +BOOL isDialInPumpRampComplete( void ) +{ + BOOL result = ( DIAL_IN_PUMP_CONTROL_TO_TARGET_STATE == dialInPumpState ? TRUE : FALSE ); + + return result; +} + /*********************************************************************//** * @brief * The execDialInFlowMonitor function executes the dialIn flow monitor.