From 73c9e7920dba1532fc9033b4c813efeddfce47fb Mon Sep 17 00:00:00 2001 From: RobotGrrl Date: Wed, 11 Jul 2018 13:23:59 -0400 Subject: [PATCH] Fixed register address names for LIS2MDL_OFFSET --- EM7180_LSM6DSM_LIS2MDL_LPS22HB_Butterfly/LIS2MDL.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/EM7180_LSM6DSM_LIS2MDL_LPS22HB_Butterfly/LIS2MDL.h b/EM7180_LSM6DSM_LIS2MDL_LPS22HB_Butterfly/LIS2MDL.h index ebce631..bc7a255 100644 --- a/EM7180_LSM6DSM_LIS2MDL_LPS22HB_Butterfly/LIS2MDL.h +++ b/EM7180_LSM6DSM_LIS2MDL_LPS22HB_Butterfly/LIS2MDL.h @@ -18,11 +18,11 @@ //Register map for LIS2MDL' // http://www.st.com/content/ccc/resource/technical/document/datasheet/group3/29/13/d1/e0/9a/4d/4f/30/DM00395193/files/DM00395193.pdf/jcr:content/translations/en.DM00395193.pdf #define LIS2MDL_OFFSET_X_REG_L 0x45 -#define LIS2MDL_OFFSET_X_REG_L 0x46 -#define LIS2MDL_OFFSET_X_REG_L 0x47 -#define LIS2MDL_OFFSET_X_REG_L 0x48 -#define LIS2MDL_OFFSET_X_REG_L 0x49 -#define LIS2MDL_OFFSET_X_REG_L 0x4A +#define LIS2MDL_OFFSET_X_REG_H 0x46 +#define LIS2MDL_OFFSET_Y_REG_L 0x47 +#define LIS2MDL_OFFSET_Y_REG_H 0x48 +#define LIS2MDL_OFFSET_Z_REG_L 0x49 +#define LIS2MDL_OFFSET_Z_REG_H 0x4A #define LIS2MDL_WHO_AM_I 0x4F #define LIS2MDL_CFG_REG_A 0x60 #define LIS2MDL_CFG_REG_B 0x61 @@ -71,4 +71,4 @@ class LIS2MDL }; -#endif +#endif