I'm using a BME280 Humidity and pressure sensor.
In the Compensation Formulas there these two line of code :
v_x1_u32r = (v_x1_u32r < 0 ? 0 : v_x1_u32r)
v_x1_u32r = (v_x1_u32r > 419430400 ? 419430400 : v_x1_u32r)
Does anyone know what this means?
Yes, see below.
There is a library for the BME280. Not working for you? Mike Otte wrote one a while ago. See the demo for BT_BME280_16F1705_V1_00.GCB
Evan
Conversion
if (v_x1_u32r < 0) then v_x1_u32r = 0 else v_x1_u32r = v_x1_u32r end if
can be optimised to
if v_x1_u32r < 0 then v_x1_u32r = 0
if (v_x1_u32r > 419430400) Then v_x1_u32r = 419430400 else v_x1_u32r = v_x1_u32r; End If
if (v_x1_u32r > 419430400) Then v_x1_u32r = 419430400
Thanks!
Log in to post a comment.
I'm using a BME280 Humidity and pressure sensor.
In the Compensation Formulas there these two line of code :
v_x1_u32r = (v_x1_u32r < 0 ? 0 : v_x1_u32r)
v_x1_u32r = (v_x1_u32r > 419430400 ? 419430400 : v_x1_u32r)
Does anyone know what this means?
Yes, see below.
There is a library for the BME280. Not working for you? Mike Otte wrote one a while ago. See the demo for BT_BME280_16F1705_V1_00.GCB
Evan
v_x1_u32r = (v_x1_u32r < 0 ? 0 : v_x1_u32r)
Conversion
can be optimised to
v_x1_u32r = (v_x1_u32r > 419430400 ? 419430400 : v_x1_u32r)
Conversion
can be optimised to
Thanks!