AP_AIS: move to config.h pattern

This commit is contained in:
Iampete1 2022-07-12 00:46:03 +01:00 committed by Andrew Tridgell
parent 8afc07d85b
commit db9b57c0a3
3 changed files with 13 additions and 10 deletions

View File

@ -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

View File

@ -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

View File

@ -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,\