Index: firmware/App/Controllers/Buttons.c =================================================================== diff -u -r94895e32fe18e78b98fe3bb7786838cf00afdbfa -r2df21d2472a8d79d78af7e359518acf3614accc5 --- firmware/App/Controllers/Buttons.c (.../Buttons.c) (revision 94895e32fe18e78b98fe3bb7786838cf00afdbfa) +++ firmware/App/Controllers/Buttons.c (.../Buttons.c) (revision 2df21d2472a8d79d78af7e359518acf3614accc5) @@ -256,7 +256,9 @@ { offRequestAwaitingUserConfirmation = TRUE; offRequestPendingTimer = 0; +#ifndef SIMULATE_UI sendOffButtonMsgToUI( OFF_BUTTON_CMD_PROMPT_USER_TO_CONFIRM ); +#endif } else { // send rejection response to power off request @@ -317,7 +319,7 @@ *************************************************************************/ static BOOL isCurrentOpModeOkToTurnOff( void ) { - OP_MODE opMode = getCurrentOperationMode(); + HD_OP_MODE_T opMode = getCurrentOperationMode(); BOOL result = FALSE; if ( ( opMode == MODE_STAN ) || ( opMode == MODE_SERV ) || ( opMode == MODE_FAUL ) ) @@ -347,6 +349,9 @@ { // if off request in a valid mode, send to UI for user confirmation userConfirmOffButton( OFF_BUTTON_RSP_USER_REQUESTS_POWER_OFF ); +#ifdef SIMULATE_UI + userConfirmOffButton( OFF_BUTTON_RSP_USER_CONFIRMS_POWER_OFF ); +#endif } prevOffButtonState = getOffButtonState(); }