Skip to content

Commit

Permalink
uORB/uorb_poll: Use CLOCK_MONOTONIC in SITL always
Browse files Browse the repository at this point in the history
Signed-off-by: Jukka Laitinen <[email protected]>
  • Loading branch information
jlaitine committed Oct 3, 2023
1 parent 7932c8b commit e4106e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion platforms/common/uORB/uORBManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,7 @@ int uORB::Manager::orb_poll(orb_poll_struct_t *fds, unsigned int nfds, int timeo
} else {
// Wait event for a maximum timeout time
struct timespec to;
#if defined(ENABLE_LOCKSTEP_SCHEDULER)
#if defined(CONFIG_ARCH_BOARD_PX4_SITL)
px4_clock_gettime(CLOCK_MONOTONIC, &to);
#else
px4_clock_gettime(CLOCK_REALTIME, &to);
Expand Down

0 comments on commit e4106e4

Please sign in to comment.