[imu] booz2 v1.2 has HMC5843

This commit is contained in:
Felix Ruess
2015-08-15 16:09:39 +02:00
parent cec2963612
commit 42d0a6cf49
+2
View File
@@ -47,6 +47,8 @@ void imu_impl_init(void)
hmc5843_init();
#elif defined IMU_B2_MAG_TYPE && IMU_B2_MAG_TYPE == IMU_B2_MAG_HMC58XX
hmc58xx_init(&imu_b2.mag_hmc, &(IMU_B2_I2C_DEV), HMC58XX_ADDR);
// Booz2 v1.2 has HMC5843
imu_b2.mag_hmc.type = HMC_TYPE_5843;
#endif
}