Index: firmware/App/Modes/ModeStandby.c =================================================================== diff -u -r484b185f0cf4b2ea0ba9de331573952b1b5124b4 -r5d8530d242d8065178eab9e3e5d8e4561b790e01 --- firmware/App/Modes/ModeStandby.c (.../ModeStandby.c) (revision 484b185f0cf4b2ea0ba9de331573952b1b5124b4) +++ firmware/App/Modes/ModeStandby.c (.../ModeStandby.c) (revision 5d8530d242d8065178eab9e3e5d8e4561b790e01) @@ -226,6 +226,28 @@ /*********************************************************************//** * @brief + * The startDGFlush function starts DG flush mode. + * @details Inputs: standbyState + * @details Outputs: none + * @return: TRUE if the switch was successful, otherwise FALSE + *************************************************************************/ +BOOL startDGFlush( void ) +{ + BOOL result = FALSE; + + // If DG is in standby mode and the standby mode is in Idle state, request DG flush + if ( DG_MODE_STAN == getCurrentOperationMode() && DG_STANDBY_MODE_STATE_IDLE == standbyState ) + { + requestNewOperationMode( DG_MODE_FLUS ); + + result = TRUE; + } + + return result; +} + +/*********************************************************************//** + * @brief * The getCurrentStandbyState function returns the current state of standby mode. * @details Inputs: standbyState * @details Outputs: none