mirror of https://github.com/ArduPilot/ardupilot
AP_Periph: fix include order network build error
This commit is contained in:
parent
f72dd8cc89
commit
7da434d1e0
|
@ -26,7 +26,6 @@
|
|||
#include <AP_Scripting/AP_Scripting.h>
|
||||
#include <AP_HAL/CANIface.h>
|
||||
#include <AP_Stats/AP_Stats.h>
|
||||
#include <AP_Networking/AP_Networking.h>
|
||||
#include <AP_RPM/AP_RPM.h>
|
||||
#include <AP_SerialManager/AP_SerialManager.h>
|
||||
#include <AP_ESC_Telem/AP_ESC_Telem_config.h>
|
||||
|
|
|
@ -1,9 +1,11 @@
|
|||
#pragma once
|
||||
|
||||
#include "AP_Periph.h"
|
||||
#include <AP_HAL/AP_HAL_Boards.h>
|
||||
|
||||
#ifdef HAL_PERIPH_ENABLE_NETWORKING
|
||||
|
||||
#include <AP_Networking/AP_Networking.h>
|
||||
|
||||
#ifndef HAL_PERIPH_NETWORK_NUM_PASSTHRU
|
||||
#define HAL_PERIPH_NETWORK_NUM_PASSTHRU 2
|
||||
#endif
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include "networking.h"
|
||||
#include "AP_Periph.h"
|
||||
|
||||
#if defined(HAL_PERIPH_ENABLE_NETWORKING) && HAL_PERIPH_NETWORK_NUM_PASSTHRU > 0
|
||||
|
||||
|
|
Loading…
Reference in New Issue