AP_HAL_AVR: add sei in defer timer process

This commit is contained in:
Pat Hickey 2012-12-04 19:11:18 -08:00 committed by Andrew Tridgell
parent 0f3e30a0c3
commit d504db195e
1 changed files with 1 additions and 0 deletions

View File

@ -251,6 +251,7 @@ bool AVRScheduler::defer_timer_process(AP_HAL::TimedProc proc) {
return false;
} else {
_timer_suspended = true;
sei();
proc(micros());
_timer_suspended = false;
return true;