From 274e441292f332e025a7c5d993e2d0923ef5aef1 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sat, 4 Nov 2017 16:53:29 +1100 Subject: [PATCH] DataFlash: fixed build for aerofc-v1 --- libraries/DataFlash/DataFlash.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/DataFlash/DataFlash.cpp b/libraries/DataFlash/DataFlash.cpp index 82dabfc9e9..6096a324b9 100644 --- a/libraries/DataFlash/DataFlash.cpp +++ b/libraries/DataFlash/DataFlash.cpp @@ -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 =