Index: firmware/App/Modes/ModeChemicalDisinfect.c =================================================================== diff -u -r5026ed04bc2977e2a6d8c854b1e356cbfb2febea -r4dc00d3bb62964e1d93782af96185f55b7eba30e --- firmware/App/Modes/ModeChemicalDisinfect.c (.../ModeChemicalDisinfect.c) (revision 5026ed04bc2977e2a6d8c854b1e356cbfb2febea) +++ firmware/App/Modes/ModeChemicalDisinfect.c (.../ModeChemicalDisinfect.c) (revision 4dc00d3bb62964e1d93782af96185f55b7eba30e) @@ -183,7 +183,7 @@ * support the special conditions that are needed to be created to test the disinfects. The support codes are not compiled in a release * build. */ -static NELSON_SUPPORT_T nelsonSupport; ///< Nelson support. +static NELSON_SUPPORT_T nelsonSupport; // Nelson support. #endif // ********** private function prototypes ********** @@ -451,22 +451,6 @@ return status; } -#ifndef _RELEASE_ -/*********************************************************************//** - * @brief - * The setNelsonSupportMode function sets the requested Nelson support - * mode (i.e. inoculate, ...) - * @details Inputs: none - * @details Outputs: nelsonSupport - * @param support the type Nelson support (i.e. inoculate, heat disinfect) - * @return none - *************************************************************************/ -void setChemNelsonSupportMode( NELSON_SUPPORT_T support ) -{ - nelsonSupport = support; -} -#endif - // ********** private functions ********** /*********************************************************************//** @@ -1330,10 +1314,6 @@ SET_ALARM_WITH_1_U32_DATA( alarmDetectedPendingTrigger, prevChemDisinfectState ) } -#ifndef _RELEASE_ - nelsonSupport = NELSON_NONE; -#endif - requestNewOperationMode( DG_MODE_FAUL ); } @@ -1633,7 +1613,6 @@ data.overallElapsedTime = calcTimeSince( overallChemDisinfectTimer ); data.stateElapsedTime = calcTimeSince( stateTimer ); data.cancellationMode = (U32)cancellationMode; - data.nelsonSupportMode = (U32)nelsonSupport; //If the mode is in the actual chemical disinfect states, publish the elapsed time, otherwise publish 0 to avoid confusion if ( chemDisinfectState > DG_CHEM_DISINFECT_STATE_FLUSH_DRAIN ) @@ -1772,11 +1751,29 @@ } } +/**@}*/ + // ********** Nelson Support Functions ********** #ifndef _RELEASE_ /*********************************************************************//** * @brief + * The setNelsonSupportMode function sets the requested Nelson support + * mode (i.e. inoculate, ...) + * @details Inputs: none + * @details Outputs: nelsonSupport + * @param support the type Nelson support (i.e. inoculate, heat disinfect) + * @return none + *************************************************************************/ +void setChemNelsonSupportMode( NELSON_SUPPORT_T support ) +{ + nelsonSupport = support; +} +#endif + +#ifndef _RELEASE_ +/*********************************************************************//** + * @brief * The setNelsonSupportConditions function sets the disinfect variables for * Nelson support. * @details Inputs: nelsonSupport @@ -1825,5 +1822,3 @@ } } #endif - -/**@}*/