mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-21 23:13:34 +08:00
Tests: Clock mock and test node got some fixes
This commit is contained in:
@@ -150,9 +150,9 @@ struct InterlinkedTestNodes
|
||||
|
||||
int spinBoth(uavcan::MonotonicDuration duration)
|
||||
{
|
||||
assert(duration.isPositive());
|
||||
unsigned int nspins2 = duration.toMSec() / 2 + 1;
|
||||
assert(nspins2 > 0);
|
||||
assert(!duration.isNegative());
|
||||
unsigned int nspins2 = duration.toMSec() / 2;
|
||||
nspins2 = nspins2 ? nspins2 : 1;
|
||||
while (nspins2 --> 0)
|
||||
{
|
||||
int ret = -1;
|
||||
|
||||
Reference in New Issue
Block a user