Plane: make DataFlash objects static
This commit is contained in:
parent
ae8ef344bf
commit
5e4b243c7b
@ -147,11 +147,12 @@ static void print_flight_mode(AP_HAL::BetterStream *port, uint8_t mode);
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
#if LOGGING_ENABLED == ENABLED
|
||||
#if CONFIG_HAL_BOARD == HAL_BOARD_APM1
|
||||
DataFlash_APM1 DataFlash;
|
||||
static DataFlash_APM1 DataFlash;
|
||||
#elif CONFIG_HAL_BOARD == HAL_BOARD_APM2
|
||||
DataFlash_APM2 DataFlash;
|
||||
static DataFlash_APM2 DataFlash;
|
||||
#elif CONFIG_HAL_BOARD == HAL_BOARD_AVR_SITL
|
||||
DataFlash_SITL DataFlash;
|
||||
//static DataFlash_File DataFlash("logs");
|
||||
static DataFlash_SITL DataFlash;
|
||||
#elif CONFIG_HAL_BOARD == HAL_BOARD_PX4
|
||||
static DataFlash_File DataFlash("/fs/microsd/APM/logs");
|
||||
#elif CONFIG_HAL_BOARD == HAL_BOARD_LINUX
|
||||
|
Loading…
Reference in New Issue
Block a user