mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-21 16:33:33 +08:00
Removed duplicated code of Timer
This commit is contained in:
@@ -47,23 +47,4 @@ void TimerBase::startPeriodic(MonotonicDuration period)
|
||||
DeadlineHandler::startWithDelay(period);
|
||||
}
|
||||
|
||||
/*
|
||||
* Timer
|
||||
*/
|
||||
#if UAVCAN_CPP_VERSION >= UAVCAN_CPP11
|
||||
|
||||
void Timer::handleTimerEvent(const TimerEvent& event)
|
||||
{
|
||||
if (callback)
|
||||
{
|
||||
callback(event);
|
||||
}
|
||||
else
|
||||
{
|
||||
assert(0);
|
||||
}
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user