mirror of
https://github.com/apache/nuttx.git
synced 2026-06-07 17:33:08 +08:00
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:
@@ -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 */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user