Artturi Alm <artturi....@gmail.com> writes: > my sensor does fill ->value_cur with mPa, so pressure does fit into the > "everything else"-else{} with ->cur_value / 1000000.0 for printout in kPa.
Until very recently I had never seen pressure in kPa. For atmospheric pressure, the standard unit seems to be hPa. I realize that's a less-normal SI prefix, but it happens to match mbar. But, I am seeing kPa more tha last 6 months. So, I wonder why you are choosing kPa vs hPa, and if that choice ends up being a framework choice for everything. And how the rest of the world deals with this issue.