Linux IIO development
 help / color / mirror / Atom feed
From: Vasileios Amoiridis <vassilisamir@gmail.com>
To: ang.iglesiasg@gmail.com
Cc: ajarizzo@gmail.com, jic23@kernel.org, lars@metafoo.de,
	linux-iio@vger.kernel.org
Subject: Replying to: [PATCH] iio pressure: bmp280: Fix BMP580 temperature reading
Date: Thu,  2 May 2024 19:16:16 +0200	[thread overview]
Message-ID: <20240502171616.154085-1-vassilisamir@gmail.com> (raw)
In-Reply-To: <043f2be49df3c11152aaf32fc5467ed43fd59faa.camel@gmail.com>

Hi Angel!

Indeed the datasheet says that the pressure is a signed value. But this comes
in contrast with 2 things:

1) The BMP58x sensor does not have a compensation function so the value from the
sensor is a pressure value just in different unit from the one reported by IIO.
And the sensor is able to report in between 30-125kPa according to the
datasheet which are both positive values so it makes more sense to be an
unsigned value.

2) According to the BMP5 sensor API [1] provided by Bosch, the pressure is
declared as an unsigned value.

So, what should we trust?

[1]: https://github.com/boschsensortec/BMP5_SensorAPI/blob/master/bmp5_defs.h#L895

  reply	other threads:[~2024-05-02 17:16 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-04-25  6:22 [PATCH] iio: pressure: bmp280: Fix BMP580 temperature reading Adam Rizkalla
2024-04-28 13:40 ` Jonathan Cameron
2024-05-02 13:05   ` Replying to: " Vasileios Amoiridis
2024-05-02 15:44 ` Angel Iglesias
2024-05-02 17:16   ` Vasileios Amoiridis [this message]
2024-05-02 18:15     ` Replying to: [PATCH] iio " Adam Rizkalla
2024-05-03  7:13       ` Angel Iglesias
2024-05-05 18:02         ` Jonathan Cameron

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20240502171616.154085-1-vassilisamir@gmail.com \
    --to=vassilisamir@gmail.com \
    --cc=ajarizzo@gmail.com \
    --cc=ang.iglesiasg@gmail.com \
    --cc=jic23@kernel.org \
    --cc=lars@metafoo.de \
    --cc=linux-iio@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox