1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-19 22:35:23 +03:00

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

View file

@ -693,12 +693,12 @@ void init(void)
} }
#endif #endif
#ifdef USE_FLASHFS #ifdef USE_FLASH_CHIP
#if defined(USE_FLASH_CHIP)
flashInit(flashConfig()); flashInit(flashConfig());
#endif #ifdef USE_FLASHFS
flashfsInit(); flashfsInit();
#endif #endif
#endif
#ifdef USE_BLACKBOX #ifdef USE_BLACKBOX
#ifdef USE_SDCARD #ifdef USE_SDCARD