1
0
Fork 0
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:
Dominic Clifton 2019-05-07 14:55:40 +09:00 committed by jflyper
parent a8e9dd94e8
commit 0dc47f21e9

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