mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-19 06:15:16 +03:00
Prevent flashfs from initializing in absence of a flash device
This commit is contained in:
parent
a8e9dd94e8
commit
0dc47f21e9
1 changed files with 4 additions and 2 deletions
|
@ -716,9 +716,11 @@ void init(void)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef USE_FLASH_CHIP
|
#ifdef USE_FLASH_CHIP
|
||||||
flashInit(flashConfig());
|
bool haveFlash = flashInit(flashConfig());
|
||||||
#ifdef USE_FLASHFS
|
#ifdef USE_FLASHFS
|
||||||
flashfsInit();
|
if (haveFlash) {
|
||||||
|
flashfsInit();
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue