mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-07-16 02:00:35 +08:00
libuavcan core now uses UAVCAN_ASSERT() instead of assert() (autoreplace)
This commit is contained in:
@@ -12,7 +12,7 @@ namespace uavcan
|
||||
*/
|
||||
void TimerBase::handleDeadline(MonotonicTime current)
|
||||
{
|
||||
assert(!isRunning());
|
||||
UAVCAN_ASSERT(!isRunning());
|
||||
|
||||
const MonotonicTime scheduled_time = getDeadline();
|
||||
|
||||
@@ -41,7 +41,7 @@ void TimerBase::startOneShotWithDelay(MonotonicDuration delay)
|
||||
|
||||
void TimerBase::startPeriodic(MonotonicDuration period)
|
||||
{
|
||||
assert(period < MonotonicDuration::getInfinite());
|
||||
UAVCAN_ASSERT(period < MonotonicDuration::getInfinite());
|
||||
stop();
|
||||
period_ = period;
|
||||
DeadlineHandler::startWithDelay(period);
|
||||
|
||||
Reference in New Issue
Block a user