Arduino LPSS22HB unit parameter error? | KILOPASCALS vs KILOPASCAL

Hi everyone. This is my initial post! :grimacing:

I'd been struggling to get my pressure reading in kilopascals on my MKR IOT Carrier, and struggling with this page.

Arduino LPS22HB pressure

The reference document says the units should be stipulated as KILOPASCALS to read the pressure in kilopascals. That didn't work for me. I tried 'KILOPASCAL' instead, and that worked!

It appears there is an error in the documentation. ?

Palooster

1 Like

Looks like it:

enum {
  PSI,
  MILLIBAR,
  KILOPASCAL
};

Starting at line 26, here: Arduino_LPS22HB/src/BARO.h at master ยท arduino-libraries/Arduino_LPS22HB ยท GitHub

2 Likes

Versus:

Someone ought to edit and write a pull request.

1 Like

... not sure how that's done, but thanks for confirming my sanity everyone!

Thanks for bringing this to our attention @palooster! I have submitted a correction:

The library reference content on the arduino.cc website is updated periodically by an automated system, so the error won't be corrected there immediately, but the correction is under way now and others should not encounter the same confusion as you did in the future.

2 Likes

Cool!!

1 Like

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.