mirror of https://github.com/ArduPilot/ardupilot
AP_AIS: move to config.h pattern
This commit is contained in:
parent
8afc07d85b
commit
db9b57c0a3
|
@ -14,15 +14,7 @@
|
|||
*/
|
||||
#pragma once
|
||||
|
||||
#include <AP_HAL/AP_HAL_Boards.h>
|
||||
|
||||
#ifndef AP_AIS_ENABLED
|
||||
#if BOARD_FLASH_SIZE <= 1024
|
||||
#define AP_AIS_ENABLED 0
|
||||
#else
|
||||
#define AP_AIS_ENABLED 2
|
||||
#endif
|
||||
#endif
|
||||
#include "AP_AIS_config.h"
|
||||
|
||||
#if AP_AIS_ENABLED
|
||||
// 0 fully disabled and compiled out
|
||||
|
|
|
@ -0,0 +1,11 @@
|
|||
#pragma once
|
||||
|
||||
#include <AP_HAL/AP_HAL_Boards.h>
|
||||
|
||||
#ifndef AP_AIS_ENABLED
|
||||
#if BOARD_FLASH_SIZE <= 1024
|
||||
#define AP_AIS_ENABLED 0
|
||||
#else
|
||||
#define AP_AIS_ENABLED 2
|
||||
#endif
|
||||
#endif
|
|
@ -1,7 +1,7 @@
|
|||
#pragma once
|
||||
|
||||
#include <AP_Logger/LogStructure.h>
|
||||
#include "AP_AIS.h"
|
||||
#include "AP_AIS_config.h"
|
||||
|
||||
#define LOG_IDS_FROM_AIS \
|
||||
LOG_AIS_RAW_MSG,\
|
||||
|
|
Loading…
Reference in New Issue