AP_InertialSensor: remove sei in data interrupt handler

This commit is contained in:
Pat Hickey 2012-12-04 19:11:05 -08:00 committed by Andrew Tridgell
parent af852aa6a9
commit 1019fb45e7

View File

@ -364,11 +364,8 @@ void AP_InertialSensor_MPU6000::data_interrupt(void)
{ {
// record time that data was available // record time that data was available
_last_sample_time_micros = hal.scheduler->micros(); _last_sample_time_micros = hal.scheduler->micros();
// queue our read process to run after any currently running timed
// re-enable interrupts // processes complete
sei();
// queue our read process to run after any currently running timed processes complete
hal.scheduler->defer_timer_process( AP_InertialSensor_MPU6000::read ); hal.scheduler->defer_timer_process( AP_InertialSensor_MPU6000::read );
} }