/* Function for updating the TEMP field of TLM.  */
static void update_temp(void)
/* Function for updating the TEMP field of TLM.  */
static void update_temp(void)
{
    int32_t temp;
    (void)sd_temp_get(&temp);
    int16_t temp_new = (int16_t) temp;
    m_tlm.temp[0] = (uint8_t)((temp_new >> 2) & 0xFFUL);
    m_tlm.temp[1] = (uint8_t)((temp_new << 6) & 0xFFUL);
}