mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-13 03:13:57 -04:00
AP_Logger: fixed use of old irqsave() API
This commit is contained in:
parent
5f65033511
commit
d7ee622edc
@ -561,7 +561,7 @@ bool AP_Logger_MAVLink::send_log_block(struct dm_block &block)
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if DF_MAVLINK_DISABLE_INTERRUPTS
|
#if DF_MAVLINK_DISABLE_INTERRUPTS
|
||||||
irqstate_t istate = irqsave();
|
void *istate = hal.scheduler->disable_interrupts_save();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// DM_packing: 267039 events, 0 overruns, 8440834us elapsed, 31us avg, min 31us max 32us 0.488us rms
|
// 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);
|
hal.util->perf_end(_perf_packing);
|
||||||
|
|
||||||
#if DF_MAVLINK_DISABLE_INTERRUPTS
|
#if DF_MAVLINK_DISABLE_INTERRUPTS
|
||||||
irqrestore(istate);
|
hal.scheduler->restore_interrupts(istate);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
block.last_sent = AP_HAL::millis();
|
block.last_sent = AP_HAL::millis();
|
||||||
|
Loading…
Reference in New Issue
Block a user