DataFlash: fixed build for aerofc-v1

This commit is contained in:
Andrew Tridgell 2017-11-04 16:53:29 +11:00
parent 6358081b18
commit 274e441292
1 changed files with 1 additions and 1 deletions

View File

@ -74,7 +74,7 @@ void DataFlash_Class::Init(const struct LogStructure *structures, uint8_t num_ty
_num_types = num_types;
_structures = structures;
#if HAL_OS_POSIX_IO
#if HAL_OS_POSIX_IO && defined(HAL_BOARD_LOG_DIRECTORY)
if (_params.backend_types == DATAFLASH_BACKEND_FILE ||
_params.backend_types == DATAFLASH_BACKEND_BOTH) {
DFMessageWriter_DFLogStart *message_writer =