Browse Source

AP_AIS: move to config.h pattern

apm_2208
Iampete1 3 years ago committed by Andrew Tridgell
parent
commit
db9b57c0a3
  1. 10
      libraries/AP_AIS/AP_AIS.h
  2. 11
      libraries/AP_AIS/AP_AIS_config.h
  3. 2
      libraries/AP_AIS/LogStructure.h

10
libraries/AP_AIS/AP_AIS.h

@ -14,15 +14,7 @@ @@ -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

11
libraries/AP_AIS/AP_AIS_config.h

@ -0,0 +1,11 @@ @@ -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

2
libraries/AP_AIS/LogStructure.h

@ -1,7 +1,7 @@ @@ -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…
Cancel
Save