diff --git a/src/modules/systemlib/print_load_posix.c b/src/modules/systemlib/print_load_posix.c index 0ac8a615e1..f47c466103 100644 --- a/src/modules/systemlib/print_load_posix.c +++ b/src/modules/systemlib/print_load_posix.c @@ -54,6 +54,11 @@ #include #endif +#ifdef __PX4_QURT +// dprintf is not available on QURT. Use the usual output to mini-dm. +#define dprintf(_fd, _text, ...) ((_fd) == 1 ? PX4_INFO((_text), ##__VA_ARGS__) : (void)(_fd)) +#endif + extern struct system_load_s system_load; #define CL "\033[K" // clear line