From f8ee57bd26135c4c63da9d412d234c695d2d1120 Mon Sep 17 00:00:00 2001 From: Joe Finney Date: Thu, 7 Jun 2018 17:37:53 +0100 Subject: [PATCH] Use correct WHO_AM_I value for LSM303 magnetometer sensor --- inc/drivers/LSM303Magnetometer.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/drivers/LSM303Magnetometer.h b/inc/drivers/LSM303Magnetometer.h index c1536a3..89ea508 100644 --- a/inc/drivers/LSM303Magnetometer.h +++ b/inc/drivers/LSM303Magnetometer.h @@ -41,7 +41,7 @@ DEALINGS IN THE SOFTWARE. * LSM303_M MAGIC ID value * Returned from the MAG_WHO_AM_I register for ID purposes. */ -#define LSM303_M_WHOAMI_VAL 0x20 +#define LSM303_M_WHOAMI_VAL 0x40 /** * I2C constants