Index: firmware/App/Modes/ModeStandby.c =================================================================== diff -u -r322747d530c1b8205be257557e53dcfe9caad50a -r724b64673b719eaac10b0c9dd839ad9675274911 --- firmware/App/Modes/ModeStandby.c (.../ModeStandby.c) (revision 322747d530c1b8205be257557e53dcfe9caad50a) +++ firmware/App/Modes/ModeStandby.c (.../ModeStandby.c) (revision 724b64673b719eaac10b0c9dd839ad9675274911) @@ -43,7 +43,7 @@ static DD_STANDBY_MODE_STATE_T standbyState; ///< Currently active standby state. -static OVERRIDE_U32_T pendingStartDDRequest; ///< Flag indicating TD has requested DD start the dialysis delivery(Overridable). +static OVERRIDE_U32_T pendingStartDDPreGenRequest; ///< Flag indicating TD has requested DD start the pre generation dialysate request(Overridable). static BOOL pendingBalanceChamberSwOnlyRequest; ///< Flag indicating balancing chamber switch only request. //static BOOL pendingStartDDFlushRequest; ///< Flag indicating TD has requested DD start flush. //static BOOL pendingStartDDHeatDisinfectRequest; ///< Flag indicating TD has requested DD start heat disinfect. @@ -65,10 +65,10 @@ void initStandbyMode( void ) { standbyState = DD_STANDBY_MODE_STATE_IDLE; - pendingStartDDRequest.data = FALSE; - pendingStartDDRequest.ovData = FALSE; - pendingStartDDRequest.ovInitData = FALSE; - pendingStartDDRequest.override = OVERRIDE_RESET; + pendingStartDDPreGenRequest.data = FALSE; + pendingStartDDPreGenRequest.ovData = FALSE; + pendingStartDDPreGenRequest.ovInitData = FALSE; + pendingStartDDPreGenRequest.override = OVERRIDE_RESET; pendingBalanceChamberSwOnlyRequest = FALSE; // pendingStartDDFlushRequest = FALSE; // pendingStartDDHeatDisinfectRequest = FALSE; @@ -173,7 +173,7 @@ * @brief * The handleStandbyIdleState function executes the idle state of the * standby mode state machine. - * @details \b Inputs: pendingSampleWaterRequest, pendingStartDDRequest, + * @details \b Inputs: pendingSampleWaterRequest, pendingStartDDPreGenRequest, * pendingStartDDFlushRequest, pendingStartDDHeatDisinfectRequest, * pendingStartDDChemicalDisinfectRequest * @details \b Outputs: Idle state of the standby mode executed, @@ -192,10 +192,10 @@ // { // define the alarm // } - if ( TRUE == getU32OverrideValue( &pendingStartDDRequest ) ) + if ( TRUE == getU32OverrideValue( &pendingStartDDPreGenRequest ) ) { - pendingStartDDRequest.data = FALSE; - requestNewOperationMode( DD_MODE_GEND ); + pendingStartDDPreGenRequest.data = FALSE; + requestNewOperationMode( DD_MODE_PREG ); } //Test request to handle only balancing chamber switching else if ( TRUE == pendingBalanceChamberSwOnlyRequest ) @@ -248,19 +248,20 @@ /*********************************************************************//** * @brief - * The requestDDStart function handles an TD request to start (go to generation dialysis mode). + * The requestDDPreGenStart function handles an TD request to start/ + * go to pre generation dialysis mode. * @details \b Inputs: standbyState - * @details \b Outputs: pendingStartDDRequest + * @details \b Outputs: pendingStartDDPreGenRequest * @return TRUE if request accepted, FALSE if not. *************************************************************************/ -BOOL requestDDStart( void ) +BOOL requestDDPreGenStart( void ) { BOOL result = FALSE; if ( DD_STANDBY_MODE_STATE_IDLE == standbyState ) { - result = TRUE; - pendingStartDDRequest.data = TRUE; + result = TRUE; + pendingStartDDPreGenRequest.data = TRUE; } return result; @@ -503,17 +504,17 @@ /*********************************************************************//** * @brief - * The testDDstartGenDialysateOverride function sets the override value - * to start the gen dialysate operation mode. - * @details Inputs: pendingStartDDRequest - * @details Outputs: pendingStartDDRequest + * The testDDstartPreGenDialysateOverride function sets the override value + * to start the pre-gen dialysate operation mode. + * @details Inputs: pendingStartDDPreGenRequest + * @details Outputs: pendingStartDDPreGenRequest * @param message Override message from Dialin which includes the flag * to override the operation mode. * @return TRUE if override successful, FALSE if not *************************************************************************/ -BOOL testDDstartGenDialysateOverride( MESSAGE_T *message ) +BOOL testDDstartPreGenDialysateOverride( MESSAGE_T *message ) { - BOOL result = u32Override( message, &pendingStartDDRequest, FALSE, TRUE ); + BOOL result = u32Override( message, &pendingStartDDPreGenRequest, FALSE, TRUE ); return result; }