1
0
Fork 0
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:
jflyper 2019-05-14 08:07:21 +09:00 committed by GitHub
commit 474faf5877
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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