From 9d043a27ad294f1202d98bedcde6706c51e57e28 Mon Sep 17 00:00:00 2001 From: Allen Date: Thu, 24 Feb 2011 12:05:45 -0800 Subject: [PATCH] Minor fix for imu aspirin event handler --- sw/airborne/subsystems/imu/imu_aspirin.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sw/airborne/subsystems/imu/imu_aspirin.h b/sw/airborne/subsystems/imu/imu_aspirin.h index 4ac53825094..9b645d9321b 100644 --- a/sw/airborne/subsystems/imu/imu_aspirin.h +++ b/sw/airborne/subsystems/imu/imu_aspirin.h @@ -153,8 +153,8 @@ static inline void imu_aspirin_event(void (* _gyro_handler)(void), void (* _acce imu_aspirin_arch_int_enable(); } -#define ImuEvent(_gyro_handler, _accel_handler, _mag_handler) { \ +#define ImuEvent(_gyro_handler, _accel_handler, _mag_handler) do { \ imu_aspirin_event(_gyro_handler, _accel_handler, _mag_handler); \ - } + } while(0); #endif /* IMU_ASPIRIN_H */