mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-06-01 19:07:45 +08:00
uORB test: Retain atomic operation
This commit is contained in:
@@ -121,7 +121,7 @@ int uORBTest::UnitTest::pubsublatency_main()
|
|||||||
num_missed += t.val - current_value - 1;
|
num_missed += t.val - current_value - 1;
|
||||||
current_value = t.val;
|
current_value = t.val;
|
||||||
|
|
||||||
unsigned elt = (unsigned)hrt_elapsed_time(&t.time);
|
unsigned elt = (unsigned)hrt_elapsed_time_atomic(&t.time);
|
||||||
latency_integral += elt;
|
latency_integral += elt;
|
||||||
timings[i] = elt;
|
timings[i] = elt;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user