mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-16 12:55:19 +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
|
||||
|
||||
#ifdef USE_FLASH_CHIP
|
||||
flashInit(flashConfig());
|
||||
bool haveFlash = flashInit(flashConfig());
|
||||
#ifdef USE_FLASHFS
|
||||
flashfsInit();
|
||||
if (haveFlash) {
|
||||
flashfsInit();
|
||||
}
|
||||
#endif
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue