Skip to content

Commit

Permalink
uORB/uORBManager.hpp: Fix pre-processor condition
Browse files Browse the repository at this point in the history
#if __PX4_NUTTX does nothing, change it to #if defined()
  • Loading branch information
pussuw committed Nov 15, 2023
1 parent e3fe2a4 commit 146f2f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion platforms/common/uORB/uORBManager.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -659,7 +659,7 @@ class Manager
{
px4_sem_init(&_sem, 1, 0);
px4_sem_init(&_lock, 1, 1);
#if __PX4_NUTTX
#if defined(__PX4_NUTTX)
sem_setprotocol(&_sem, SEM_PRIO_NONE);
sem_setprotocol(&_lock, SEM_PRIO_NONE);
#endif
Expand Down

0 comments on commit 146f2f8

Please sign in to comment.