mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-25 05:23:34 +08:00
Remove include <log.h> from defines.h
The reason for this is that log.h includes drv_hrt.h which sucks in half the project's include files with it, which causes strange build issues
This commit is contained in:
@@ -41,6 +41,7 @@
|
||||
|
||||
#include <cstring>
|
||||
|
||||
#include <px4_platform_common/log.h>
|
||||
#include <px4_platform_common/posix.h>
|
||||
|
||||
namespace device
|
||||
|
||||
@@ -40,9 +40,12 @@
|
||||
#ifndef _DEVICE_DEVICE_HPP
|
||||
#define _DEVICE_DEVICE_HPP
|
||||
|
||||
#include <cstdio>
|
||||
|
||||
/*
|
||||
* Includes here should only cover the needs of the framework definitions.
|
||||
*/
|
||||
#include <px4_platform_common/log.h>
|
||||
#include <px4_platform_common/px4_config.h>
|
||||
#include <px4_platform_common/posix.h>
|
||||
|
||||
|
||||
@@ -37,6 +37,7 @@
|
||||
* LED driver to control the onboard LED(s) via ioctl interface.
|
||||
*/
|
||||
|
||||
#include <px4_platform_common/log.h>
|
||||
#include <px4_platform_common/px4_config.h>
|
||||
#include <lib/cdev/CDev.hpp>
|
||||
#include <drivers/drv_board_led.h>
|
||||
|
||||
Reference in New Issue
Block a user