mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-21 11:53:33 +08:00
TimerEvent fields were renamed; timer pointer removed
This commit is contained in:
@@ -12,13 +12,13 @@ void Timer::handleDeadline(MonotonicTime current_timestamp)
|
||||
{
|
||||
assert(!isRunning());
|
||||
|
||||
const MonotonicTime scheduled_deadline = getDeadline();
|
||||
const MonotonicTime scheduled_time = getDeadline();
|
||||
|
||||
if (period_ < MonotonicDuration::getInfinite())
|
||||
startWithDeadline(scheduled_deadline + period_);
|
||||
startWithDeadline(scheduled_time + period_);
|
||||
|
||||
// Application can re-register the timer with different params, it's OK
|
||||
handleTimerEvent(TimerEvent(this, scheduled_deadline, current_timestamp));
|
||||
handleTimerEvent(TimerEvent(scheduled_time, current_timestamp));
|
||||
}
|
||||
|
||||
void Timer::startOneShotWithDeadline(MonotonicTime deadline)
|
||||
|
||||
Reference in New Issue
Block a user