Index: firmware/App/Controllers/Valves.c =================================================================== diff -u -rb80e670a9d724b5c6cdac4d74ce263a49bf6b697 -re734f2d5dbdf3fa44a46892d1207e1f0859ed242 --- firmware/App/Controllers/Valves.c (.../Valves.c) (revision b80e670a9d724b5c6cdac4d74ce263a49bf6b697) +++ firmware/App/Controllers/Valves.c (.../Valves.c) (revision e734f2d5dbdf3fa44a46892d1207e1f0859ed242) @@ -62,6 +62,7 @@ static U32 valveStateMismatchTimerCounter; ///< Initialize valve state mismatch timer. static U32 pendingValveStateChanges[ DD_NUM_OF_VALVES ]; ///< Delayed (pending) valve state changes. static U32 pendingValveStateChangeCountDowns[ DD_NUM_OF_VALVES ]; ///< Delayed (pending) valve state change count down timers (in task intervals). +static RECOVERY_STATE_T recoveryState; ///< IOFP valve recovery setting. static OVERRIDE_U32_T valveStates[ DD_NUM_OF_VALVES ]; ///< Currently commanded valves states. static OVERRIDE_U32_T valveSensedStates[ DD_NUM_OF_VALVES ]; ///< Valve sensed states override. @@ -593,6 +594,18 @@ /*********************************************************************//** * @brief + * The getRecoveryState function gets the current valve recovery state. + * @details \b Inputs: recoveryState + * @details \b Outputs: recoveryState + * @return the current valve recovery state. + *************************************************************************/ +RECOVERY_STATE_T getRecoveryState( void ) +{ + return recoveryState; +} + +/*********************************************************************//** + * @brief * The publishValvesStates function publishes DD valves states at the set interval. * @details \b Inputs: valvesStatesPublicationTimerCounter * @details \b Outputs: valvesStatesPublicationTimerCounter