DataFlash: fix up logging on ChibiOS after change for F4Light

This commit is contained in:
Andrew Tridgell 2018-04-11 09:24:55 +10:00
parent 1ad6de1e80
commit 2b49a3ab7b
1 changed files with 1 additions and 1 deletions

View File

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