Index: firmware/App/Controllers/DGInterface.c =================================================================== diff -u -r2c85a6499b030fa3021cd5d8567af9dbc01bf552 -r565ed0856be2fcf1443e3ec4cb8fe023b2c14db4 --- firmware/App/Controllers/DGInterface.c (.../DGInterface.c) (revision 2c85a6499b030fa3021cd5d8567af9dbc01bf552) +++ firmware/App/Controllers/DGInterface.c (.../DGInterface.c) (revision 565ed0856be2fcf1443e3ec4cb8fe023b2c14db4) @@ -382,6 +382,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