Index: firmware/App/Controllers/Buttons.h =================================================================== diff -u -r8bd1ae47aa13a843aa8abd6321ddc050deacb4a6 -rcd5be724d5a3ba7457e761191d82f278654d7f5c --- firmware/App/Controllers/Buttons.h (.../Buttons.h) (revision 8bd1ae47aa13a843aa8abd6321ddc050deacb4a6) +++ firmware/App/Controllers/Buttons.h (.../Buttons.h) (revision cd5be724d5a3ba7457e761191d82f278654d7f5c) @@ -1,14 +1,14 @@ /************************************************************************** * -* Copyright (c) 2019-2021 Diality Inc. - All Rights Reserved. +* Copyright (c) 2019-2024 Diality Inc. - All Rights Reserved. * * THIS CODE MAY NOT BE COPIED OR REPRODUCED IN ANY FORM, IN PART OR IN * WHOLE, WITHOUT THE EXPLICIT PERMISSION OF THE COPYRIGHT OWNER. * * @file Buttons.h * -* @author (last) Quang Nguyen -* @date (last) 02-Dec-2020 +* @author (last) Sean Nash +* @date (last) 31-Aug-2023 * * @author (original) Dara Navaei * @date (original) 05-Nov-2019 @@ -46,13 +46,20 @@ } OFF_BUTTON_MESSAGE_FROM_UI_PAYLOAD_T; #pragma pack(pop) +/// Power off warning message payload data. +typedef struct +{ + U32 powerOffWarning; ///< Power off warning message. +} POWER_OFF_WARNING_DATA_T; + // ********** public function prototypes ********** void initButtons( void ); void execButtons( void ); BOOL isStopButtonPressed( void ); void userConfirmOffButton( U08 response ); -SELF_TEST_STATUS_T execStuckButtonTest( void ); +SELF_TEST_STATUS_T execStuckButtonTest( void ); +void resetStuckButtonPOSTState( void ); BUTTON_STATE_T getOffButtonState( void ); BUTTON_STATE_T getStopButtonState( void );