1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-24 00:35:39 +03:00

Fix MSP Flash FS supported (#5670)

This commit is contained in:
Míguel Ángel Mulero Martínez 2018-04-15 02:29:49 +02:00 committed by Michael Keller
parent f63edf1a39
commit 4e024f5467
3 changed files with 13 additions and 1 deletions

View file

@ -111,6 +111,11 @@ bool flashfsIsReady(void)
return m25p16_isReady();
}
bool flashfsIsSupported(void)
{
return flashfsGetSize() > 0;
}
uint32_t flashfsGetSize(void)
{
return m25p16_getGeometry()->totalSize;