1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-25 01:05:27 +03:00

Call flashfsIsSupported instead of flashfsIsReady to check flash chip existence

This commit is contained in:
jflyper 2018-07-02 09:46:54 +09:00
parent 8e9e757448
commit 9d1e4db800
4 changed files with 11 additions and 3 deletions

View file

@ -1275,7 +1275,7 @@ static void osdGetBlackboxStatusString(char * buff)
#ifdef USE_FLASHFS
case BLACKBOX_DEVICE_FLASH:
storageDeviceIsWorking = flashfsIsReady();
storageDeviceIsWorking = flashfsIsSupported();
if (storageDeviceIsWorking) {
const flashGeometry_t *geometry = flashfsGetGeometry();
storageTotal = geometry->totalSize / 1024;