fixed AMI601 not working

This commit is contained in:
Antoine Drouin
2009-07-28 20:43:35 +00:00
parent 5d2c6d25b0
commit 3921e22738
+2
View File
@@ -45,7 +45,9 @@
}
#elif defined IMU_B2_MAG_TYPE && IMU_B2_MAG_TYPE == IMU_B2_MAG_AMI601
#include "peripherals/booz_ami601.h"
#define foo_handler() {}
#define BoozImuMagEvent(_mag_handler) { \
AMI601Event(foo_handler); \
if (ami601_status == AMI601_DATA_AVAILABLE) { \
booz_imu.mag_unscaled.x = ami601_values[IMU_MAG_X_CHAN]; \
booz_imu.mag_unscaled.y = ami601_values[IMU_MAG_Y_CHAN]; \