You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by je...@apache.org on 2018/12/17 09:19:43 UTC
[mynewt-core] 01/03: hw/drivers/lis2dh12: Fix self test bit mask
This is an automated email from the ASF dual-hosted git repository.
jerzy pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-core.git
commit 59e7c954eba57dfee4e435788a2937161e6ebbb0
Author: Jerzy Kasenberg <je...@codecoup.pl>
AuthorDate: Fri Dec 14 10:59:42 2018 +0100
hw/drivers/lis2dh12: Fix self test bit mask
Bit masks for self test mode were incorrect
---
hw/drivers/sensors/lis2dh12/include/lis2dh12/lis2dh12.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/hw/drivers/sensors/lis2dh12/include/lis2dh12/lis2dh12.h b/hw/drivers/sensors/lis2dh12/include/lis2dh12/lis2dh12.h
index fe89b57..0cbdc4b 100644
--- a/hw/drivers/sensors/lis2dh12/include/lis2dh12/lis2dh12.h
+++ b/hw/drivers/sensors/lis2dh12/include/lis2dh12/lis2dh12.h
@@ -49,8 +49,8 @@ extern "C" {
#define LIS2DH12_DATA_RATE_HN_1344HZ_L_5376HZ 0x90
#define LIS2DH12_ST_MODE_DISABLE 0x00
-#define LIS2DH12_ST_MODE_MODE1 0x01
-#define LIS2DH12_ST_MODE_MODE2 0x02
+#define LIS2DH12_ST_MODE_MODE0 0x02
+#define LIS2DH12_ST_MODE_MODE1 0x04
#define LIS2DH12_HPF_M_NORMAL0 0x00
#define LIS2DH12_HPF_M_REF 0x01