mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-23 00:05:33 +03:00
Partitions are now accessed by types rather than indices
This commit is contained in:
parent
92999681e3
commit
f5084a59bd
8 changed files with 117 additions and 67 deletions
|
@ -338,7 +338,7 @@ static void serializeDataflashSummaryReply(sbuf_t *dst)
|
|||
uint8_t flags = MSP_FLASHFS_FLAG_SUPPORTED;
|
||||
flags |= (flashfsIsReady() ? MSP_FLASHFS_FLAG_READY : 0);
|
||||
|
||||
const flashPartition_t *flashPartition = flashFindPartitionByUsage(FLASH_PARTITION_FLASHFS);
|
||||
const flashPartition_t *flashPartition = flashPartitionFindByType(FLASH_PARTITION_TYPE_FLASHFS);
|
||||
|
||||
sbufWriteU8(dst, flags);
|
||||
sbufWriteU32(dst, FLASH_PARTITION_SECTOR_COUNT(flashPartition));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue