We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cad0c8a commit 5eb530bCopy full SHA for 5eb530b
src/BARO.cpp
@@ -66,7 +66,7 @@ float LPS22HBClass::readPressure(int units)
66
(i2cRead(LPS22HB_PRESS_OUT_L_REG) << 8) |
67
(i2cRead(LPS22HB_PRESS_OUT_H_REG) << 16)) / 40960.0;
68
69
- if (units == MILLIBAR) { // 1 kPa = 10 MILLIBAR
+ if (units == MILLIBAR) { // 1 kPa = 10 millibar
70
return reading * 10;
71
} else if (units == PSI) { // 1 kPa = 0.145038 PSI
72
return reading * 0.145038;
0 commit comments