mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-22 00:28:30 -04:00
AP_NavEKF2: fixed use of old irqsave() API
This commit is contained in:
parent
d7ee622edc
commit
1d47f9186e
@ -525,7 +525,7 @@ void NavEKF2_core::UpdateFilter(bool predict)
|
||||
|
||||
// start the timer used for load measurement
|
||||
#if EK2_DISABLE_INTERRUPTS
|
||||
irqstate_t istate = irqsave();
|
||||
void *istate = hal.scheduler->disable_interrupts_save();
|
||||
#endif
|
||||
hal.util->perf_begin(_perf_UpdateFilter);
|
||||
|
||||
@ -576,7 +576,7 @@ void NavEKF2_core::UpdateFilter(bool predict)
|
||||
// stop the timer used for load measurement
|
||||
hal.util->perf_end(_perf_UpdateFilter);
|
||||
#if EK2_DISABLE_INTERRUPTS
|
||||
irqrestore(istate);
|
||||
hal.scheduler->restore_interrupts(istate);
|
||||
#endif
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user