diff options
Diffstat (limited to 'src/platforms/px4_middleware.h')
-rw-r--r-- | src/platforms/px4_middleware.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/platforms/px4_middleware.h b/src/platforms/px4_middleware.h index c1465b4b1..b0bc40417 100644 --- a/src/platforms/px4_middleware.h +++ b/src/platforms/px4_middleware.h @@ -53,13 +53,13 @@ __EXPORT uint64_t get_time_micros(); /** * Returns true if the app/task should continue to run */ -bool ok() { return ros::ok(); } +inline bool ok() { return ros::ok(); } #else extern bool task_should_exit; /** * Returns true if the app/task should continue to run */ -bool ok() { return !task_should_exit; } +inline bool ok() { return !task_should_exit; } #endif class Rate |