From 3b8ce12ffe7d433c22aab0387d14fa4f4eff2526 Mon Sep 17 00:00:00 2001 From: Dominic Clifton Date: Fri, 23 Nov 2018 11:31:44 +0100 Subject: [PATCH] Allow flash initialisation without flashfs support. There are reasons to enable flash hardware support other than just flashfs. e.g. config storage, debugging, etc. --- src/main/fc/init.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/fc/init.c b/src/main/fc/init.c index f10e772a6..ea52e8a62 100644 --- a/src/main/fc/init.c +++ b/src/main/fc/init.c @@ -693,12 +693,12 @@ void init(void) } #endif -#ifdef USE_FLASHFS -#if defined(USE_FLASH_CHIP) +#ifdef USE_FLASH_CHIP flashInit(flashConfig()); -#endif +#ifdef USE_FLASHFS flashfsInit(); #endif +#endif #ifdef USE_BLACKBOX #ifdef USE_SDCARD