aboutsummaryrefslogtreecommitdiffstats
path: root/os
diff options
context:
space:
mode:
Diffstat (limited to 'os')
-rw-r--r--os/ex/ST/lps25h.c2
-rw-r--r--os/ex/ST/lps25h.h6
2 files changed, 4 insertions, 4 deletions
diff --git a/os/ex/ST/lps25h.c b/os/ex/ST/lps25h.c
index 47832500d..b038d1c26 100644
--- a/os/ex/ST/lps25h.c
+++ b/os/ex/ST/lps25h.c
@@ -144,7 +144,7 @@ static msg_t read_cooked(void *ip, float* axis) {
msg = read_raw(ip, &raw);
- *axis = raw / ((LPS25HDriver *)ip)->sensitivity;
+ *axis = raw * ((LPS25HDriver *)ip)->sensitivity;
*axis -= ((LPS25HDriver *)ip)->bias;
return msg;
}
diff --git a/os/ex/ST/lps25h.h b/os/ex/ST/lps25h.h
index a03e4e3bf..085b9228d 100644
--- a/os/ex/ST/lps25h.h
+++ b/os/ex/ST/lps25h.h
@@ -40,7 +40,7 @@
/**
* @brief LPS25H driver version string.
*/
-#define EX_LPS25H_VERSION "1.0.2"
+#define EX_LPS25H_VERSION "1.0.3"
/**
* @brief LPS25H driver version major number.
@@ -55,7 +55,7 @@
/**
* @brief LPS25H driver version patch number.
*/
-#define EX_LPS25H_PATCH 2
+#define EX_LPS25H_PATCH 3
/** @} */
/**
@@ -65,7 +65,7 @@
*/
#define LPS25H_NUMBER_OF_AXES 1U
-#define LPS25H_SENS 4096.0f /**< LSB/hPa */
+#define LPS25H_SENS 0.00024414f /**< hPa/LSB */
/** @} */
/**