Index: firmware/App/Controllers/DGInterface.c =================================================================== diff -u -r633861a3e472c1a288fa10a52ec0f7e7153e4dce -rb32dd9e582f74d0ddc106a0d0b1efa8974c08c4d --- firmware/App/Controllers/DGInterface.c (.../DGInterface.c) (revision 633861a3e472c1a288fa10a52ec0f7e7153e4dce) +++ firmware/App/Controllers/DGInterface.c (.../DGInterface.c) (revision b32dd9e582f74d0ddc106a0d0b1efa8974c08c4d) @@ -922,7 +922,27 @@ return hasCommandResp; } +/*********************************************************************//** + * @brief + * The checkDGRestart function checks to see if DG has restarted after started + * by HD and triggers appropriate alarm. + * @details Inputs: dgStarted + * @details Outputs: triggers a fault alarm if DG restarted + * @return none + *************************************************************************/ +void checkDGRestart( void ) +{ + if ( TRUE == dgStarted ) + { + if ( ( DG_MODE_FAUL != dgCurrentOpMode ) && ( DG_MODE_CIRC != dgCurrentOpMode ) && + ( DG_MODE_FILL != dgCurrentOpMode ) && ( DG_MODE_DRAI != dgCurrentOpMode ) ) + { + activateAlarmNoData( ALARM_ID_DG_RESTARTED_FAULT ); + } + } +} + /************************************************************************* * TEST SUPPORT FUNCTIONS *************************************************************************/