mirror of https://github.com/ArduPilot/ardupilot
AP_HAL_AVR: add sei in defer timer process
This commit is contained in:
parent
0f3e30a0c3
commit
d504db195e
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue