mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-17 13:25:30 +03:00
Merge pull request #8259 from jflyper/bfdev-dont-init-flashfs-without-flash
Prevent flashfs from initializing in absence of a flash device
This commit is contained in:
commit
474faf5877
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
|
||||||
|
if (haveFlash) {
|
||||||
flashfsInit();
|
flashfsInit();
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue