This is an automated email from the ASF dual-hosted git repository. xiaoxiang pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/nuttx.git
commit d9455ab42057ee27de4891132b4772c643848d18 Author: Takumi Ando <[email protected]> AuthorDate: Wed Dec 20 10:49:59 2023 +0900 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 <[email protected]> --- drivers/sensors/ms56xx_uorb.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/sensors/ms56xx_uorb.c b/drivers/sensors/ms56xx_uorb.c index 1306b426ae..1d6499dd56 100644 --- a/drivers/sensors/ms56xx_uorb.c +++ b/drivers/sensors/ms56xx_uorb.c @@ -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 */
