Index: firmware/App/Controllers/DGInterface.c =================================================================== diff -u -raaee82db1f0d169e3a51ea8fdba7f57c16b0b986 -rba7a576375ad7bbfa0d5a879d82b8783e5182899 --- firmware/App/Controllers/DGInterface.c (.../DGInterface.c) (revision aaee82db1f0d169e3a51ea8fdba7f57c16b0b986) +++ firmware/App/Controllers/DGInterface.c (.../DGInterface.c) (revision ba7a576375ad7bbfa0d5a879d82b8783e5182899) @@ -384,6 +384,19 @@ return inactiveRes; } + +/*********************************************************************//** + * @brief + * The hasDGCompletedReservoirSwitch function checks if DG has completed a + * switch reservoir command. + * @details Inputs: dgActiveReservoir, dgActiveReservoirSet + * @details Outputs: none + * @return TRUE if reported active reservoir is the same as set id, otherwise FALSE + *************************************************************************/ +BOOL hasDGCompletedReservoirSwitch( void ) +{ + return ( dgActiveReservoir == dgActiveReservoirSet ); +} /*********************************************************************//** * @brief