sensors: mx56xx: Fix threshold of second order compensation
The threshold of second order compensation at very low temperature is -15°C. Signed-off-by: Takumi Ando <t-ando@advaly.co.jp>
This commit is contained in:
parent
34a6dddb7a
commit
d9455ab420
@ -553,7 +553,7 @@ static uint32_t ms56xx_compensate_press(FAR struct ms56xx_dev_s *priv,
|
||||
off2 = (61 * delta) >> 4;
|
||||
sens2 = 2 * delta;
|
||||
|
||||
if (temp < 1500)
|
||||
if (temp < -1500)
|
||||
{
|
||||
/* Very low temperature */
|
||||
|
||||
@ -579,7 +579,7 @@ static uint32_t ms56xx_compensate_press(FAR struct ms56xx_dev_s *priv,
|
||||
off2 = (5 * delta) >> 1;
|
||||
sens2 = (5 * delta) >> 2;
|
||||
|
||||
if (temp < 1500)
|
||||
if (temp < -1500)
|
||||
{
|
||||
/* Very low temperature */
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user