/* Function for updating the ADV_SEC field of TLM.  */
static void update_time(void)
/* Function for updating the ADV_SEC field of TLM.  */
static void update_time(void)
{
    static uint32_t time_total_100_ms = 0;
    uint32_t        be_time_100_ms;
    time_total_100_ms += es_stopwatch_check(m_time_sec_sw_id);
    be_time_100_ms = BYTES_REVERSE_32BIT(time_total_100_ms);
    memcpy(m_tlm.sec_cnt, &be_time_100_ms, ES_TLM_SEC_CNT_LENGTH);
}