Index: firmware/App/Tasks/TaskBG.c =================================================================== diff -u -r8bd1ae47aa13a843aa8abd6321ddc050deacb4a6 -rcd5be724d5a3ba7457e761191d82f278654d7f5c --- firmware/App/Tasks/TaskBG.c (.../TaskBG.c) (revision 8bd1ae47aa13a843aa8abd6321ddc050deacb4a6) +++ firmware/App/Tasks/TaskBG.c (.../TaskBG.c) (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 TaskBG.c * -* @author (last) Quang Nguyen -* @date (last) 06-Apr-2021 +* @author (last) Sean Nash +* @date (last) 29-Jun-2023 * * @author (original) Dara Navaei * @date (original) 05-Nov-2019 @@ -33,11 +33,11 @@ // ********** private definitions ********** -#define MAX_TIME_FOR_UI_TO_COMMUNICATE_MS 40000 ///< Maximum time we wait for UI to communicate after power up (40 seconds). +#define MAX_TIME_FOR_UI_TO_COMMUNICATE_MS ( 2 * SEC_PER_MIN * MS_PER_SECOND ) ///< Maximum time we wait for UI to communicate after power up (2 minutes). // ********** private data ********** -static U32 startUICommTimeout; ///< Timer counter for UI to begin communicating. +static U32 startUICommTimeout; ///< Timer counter for UI to begin communicating. // ********** private function prototypes ********** @@ -50,7 +50,7 @@ * @return none *************************************************************************/ void taskBackground( void ) -{ +{ startUICommTimeout = getMSTimerCount(); #ifndef _VECTORCAST_ // Cannot have infinite loop in unit test tool @@ -61,14 +61,12 @@ if ( FALSE == uiCommunicated() ) { #ifndef BOARD_WITH_NO_HARDWARE -#ifndef SIMULATE_UI // Check timeout waiting for UI to check in (via CAN) after startup. if ( TRUE == didTimeout( startUICommTimeout, MAX_TIME_FOR_UI_TO_COMMUNICATE_MS ) ) { - activateAlarmNoData( ALARM_ID_UI_COMM_POST_FAILED ); + activateAlarmNoData( ALARM_ID_HD_UI_COMM_POST_FAILED ); } #endif -#endif } // Manage the watchdog