mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-06-27 14:20:35 +08:00
check CONFIG_SCHED_INSTRUMENTATION for print_load_nuttx
This commit is contained in:
committed by
David Sidrane
parent
fce35ba9d2
commit
8a2e3800d8
@@ -46,6 +46,8 @@
|
||||
#include <systemlib/printload.h>
|
||||
#include <drivers/drv_hrt.h>
|
||||
|
||||
#if defined(CONFIG_SCHED_INSTRUMENTATION)
|
||||
|
||||
extern struct system_load_s system_load;
|
||||
|
||||
#define CL "\033[K" // clear line
|
||||
@@ -380,3 +382,5 @@ void print_load(uint64_t t, int fd, struct print_load_s *print_state)
|
||||
|
||||
print_load_buffer(t, data.buffer, sizeof(data.buffer), print_load_callback, &data, print_state);
|
||||
}
|
||||
|
||||
#endif // if CONFIG_SCHED_INSTRUMENTATION
|
||||
|
||||
Reference in New Issue
Block a user