From d85a7e4c4b0342929e450678e6415a4d5be5e3b7 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sat, 21 Sep 2019 12:20:45 +1000 Subject: [PATCH] AP_Logger: fixed use of old irqsave() API --- libraries/AP_Logger/AP_Logger_MAVLink.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libraries/AP_Logger/AP_Logger_MAVLink.cpp b/libraries/AP_Logger/AP_Logger_MAVLink.cpp index 84be5a4309..ebec7424bb 100644 --- a/libraries/AP_Logger/AP_Logger_MAVLink.cpp +++ b/libraries/AP_Logger/AP_Logger_MAVLink.cpp @@ -561,7 +561,7 @@ bool AP_Logger_MAVLink::send_log_block(struct dm_block &block) #endif #if DF_MAVLINK_DISABLE_INTERRUPTS - irqstate_t istate = irqsave(); + void *istate = hal.scheduler->disable_interrupts_save(); #endif // DM_packing: 267039 events, 0 overruns, 8440834us elapsed, 31us avg, min 31us max 32us 0.488us rms @@ -583,7 +583,7 @@ bool AP_Logger_MAVLink::send_log_block(struct dm_block &block) hal.util->perf_end(_perf_packing); #if DF_MAVLINK_DISABLE_INTERRUPTS - irqrestore(istate); + hal.scheduler->restore_interrupts(istate); #endif block.last_sent = AP_HAL::millis();