Allow flash initialisation without flashfs support.

There are reasons to enable flash hardware support other than just
flashfs.  e.g. config storage, debugging, etc.
This commit is contained in:
Dominic Clifton 2018-11-23 11:31:44 +01:00 committed by jflyper
parent cfcd528a87
commit 3b8ce12ffe
1 changed files with 3 additions and 3 deletions

View File

@ -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