mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-06-05 14:17:20 +08:00
Nuttx: fixed include of systemlib/err.h
The new px4_debug.h included "err.h" instead of "systemlib/err.h" for NuttX. Signed-off-by: Mark Charlebois <charlebm@gmail.com>
This commit is contained in:
@@ -39,6 +39,7 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#if defined(__PX4_LINUX) || defined(__PX4_QURT)
|
#if defined(__PX4_LINUX) || defined(__PX4_QURT)
|
||||||
|
|
||||||
#include <err.h>
|
#include <err.h>
|
||||||
|
|
||||||
#define PX4_DBG(...)
|
#define PX4_DBG(...)
|
||||||
@@ -54,7 +55,8 @@
|
|||||||
#define PX4_ERR(...) ROS_WARN(__VA_ARGS__)
|
#define PX4_ERR(...) ROS_WARN(__VA_ARGS__)
|
||||||
|
|
||||||
#elif defined(__PX4_NUTTX)
|
#elif defined(__PX4_NUTTX)
|
||||||
#include <err.h>
|
|
||||||
|
#include <systemlib/err.h>
|
||||||
|
|
||||||
#define PX4_DBG(...)
|
#define PX4_DBG(...)
|
||||||
#define PX4_INFO(...) warnx(__VA_ARGS__)
|
#define PX4_INFO(...) warnx(__VA_ARGS__)
|
||||||
|
|||||||
Reference in New Issue
Block a user