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

Partitions are now accessed by types rather than indices

This commit is contained in:
jflyper 2019-05-19 18:42:39 +09:00
parent 92999681e3
commit f5084a59bd
8 changed files with 117 additions and 67 deletions

View file

@ -433,7 +433,7 @@ static void osdGetBlackboxStatusString(char * buff)
case BLACKBOX_DEVICE_FLASH:
if (storageDeviceIsWorking) {
const flashPartition_t *flashPartition = flashFindPartitionByUsage(FLASH_PARTITION_FLASHFS);
const flashPartition_t *flashPartition = flashPartitionFindByType(FLASH_PARTITION_TYPE_FLASHFS);
const flashGeometry_t *flashGeometry = flashGetGeometry();
storageTotal = ((FLASH_PARTITION_SECTOR_COUNT(flashPartition) * flashGeometry->sectorSize) / 1024);