mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-27 14:53:35 +08:00
Removed assert() in time sync master
This commit is contained in:
@@ -35,7 +35,7 @@ void GlobalTimeSyncMaster::IfaceMaster::setTxTimestamp(UtcTime ts)
|
|||||||
}
|
}
|
||||||
if (!prev_tx_utc_.isZero())
|
if (!prev_tx_utc_.isZero())
|
||||||
{
|
{
|
||||||
assert(0);
|
prev_tx_utc_ = UtcTime(); // Reset again, because there's something broken in the driver and we don't trust it
|
||||||
pub_.getNode().registerInternalFailure("GlobalTimeSyncMaster publication conflict");
|
pub_.getNode().registerInternalFailure("GlobalTimeSyncMaster publication conflict");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user