mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-11-30 21:12:20 +08:00
uORB test: Retain atomic operation
This commit is contained in:
1 parent
01b7a11255
commit
ec0a9806a8
1 file changed
+1
-1
@@ -121,7 +121,7 @@ int uORBTest::UnitTest::pubsublatency_main()
|
||||
num_missed += t.val - current_value - 1;
|
||||
current_value = t.val;
|
||||
|
||||
unsigned elt = (unsigned)hrt_elapsed_time(&t.time);
|
||||
unsigned elt = (unsigned)hrt_elapsed_time_atomic(&t.time);
|
||||
latency_integral += elt;
|
||||
timings[i] = elt;
|
||||
|
||||
|
||||
Reference in new issue
Block a user