mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-15 17:13:34 +08:00
check CONFIG_SCHED_INSTRUMENTATION for print_load_nuttx
This commit is contained in:
committed by
David Sidrane
parent
fce35ba9d2
commit
8a2e3800d8
@@ -58,6 +58,10 @@
|
||||
#include <uORB/topics/cpuload.h>
|
||||
#include <uORB/topics/task_stack_info.h>
|
||||
|
||||
#if defined(__PX4_NUTTX) && !defined(CONFIG_SCHED_INSTRUMENTATION)
|
||||
# error load_mon support requires CONFIG_SCHED_INSTRUMENTATION
|
||||
#endif
|
||||
|
||||
extern struct system_load_s system_load;
|
||||
|
||||
#define STACK_LOW_WARNING_THRESHOLD 300 ///< if free stack space falls below this, print a warning
|
||||
|
||||
Reference in New Issue
Block a user