Skip to content

Commit

Permalink
uORB: Fix uORB wrap-around test, set _data_valid = true together with…
Browse files Browse the repository at this point in the history
… generation

This manifests only with the new uORB library, which always returns 0 updates available
when data is not valid

Signed-off-by: Jukka Laitinen <[email protected]>
  • Loading branch information
jlaitine committed Dec 14, 2023
1 parent 3ae2850 commit 03a8e74
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions platforms/common/uORB/uORB_tests/uORBTest_UnitTest.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ class uORBTest::UnitTest
// Assist in testing the wrap-around situation
static void set_generation(uORB::DeviceNode &node, unsigned generation)
{
node._data_valid = true;
node._generation.store(generation);
}

Expand Down

0 comments on commit 03a8e74

Please sign in to comment.