Hi,
Please find below a detailed answer from our TPMS apps engineer.
Measuring the actual value of pressure is done in two steps:
1. TPMS_READ_PRESSURE(gu16UUMA, 1u) will store the 10-bit uncompensated value of pressure (output of the ADC) in UUMA.
2. TPMS_COMP_PRESSURE(&u16CompPress,gu16UUMA) performs a compensation of the pressure value stored in UUMA: the function linearizes the value and correct the error due to temperature and voltage (this is why this function must be called after the readings of pressure, temperature and voltage).
Both functions (READ and COMP) return a status to indicate if the pressure value is ok or if there has been a problem with the ADC or an underflow/overflow.
The returned status is explained in the firmware user guides. For example, below is the returned status of TPMS_COMP_PRESSURE:

If the returned status is 0, it means the pressure value returned by TPMS_COMP_PRESSURE is valid and can be used. If the value is not 0, it means there has been a problem (overflow/undeflow) or we suspect there is a problem, so the value may not be accurate.
In the code, when there is:
if( TPMS_COMP_PRESSURE(&u16CompPress,gu16UUMA))
{ gu16UUMA[UUMA_PRESSURE] = 0xFFFF; }
... it means that if the returned status of TPMS_COMP_PRESSURE is not 0 (so there is or may be a problem), the uncompensated pressure value is set to 0xFFFF.
I suppose that later in the code the uncompensated pressure must be checked and if it is 0xFFFF, then the pressure value is discarded? But I do not know why this is done on the uncompensated pressure (in UUMA) and not on the compensated pressure value (u16CompPress). The person who wrote this code wanted to handle it like that, but this is not the only way.
So of course this can be modified and you can use:
u8Status |= TPMS_COMP_PRESSURE(&u16CompPress,gu16UUMA);
What is important to do is to check the returned status to know if the pressure value is ok or not. The way to verify the status and indicate if the pressure can be used or not can be done in many ways, it will depend on the person who is writing the application and on the requirements of the application.
I hope it helps!
Best regards,
Tomas