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:
parent
92999681e3
commit
f5084a59bd
8 changed files with 117 additions and 67 deletions
|
@ -595,11 +595,11 @@ void flashfsClose(void)
|
|||
/**
|
||||
* Call after initializing the flash chip in order to set up the filesystem.
|
||||
*/
|
||||
void flashfsInit()
|
||||
void flashfsInit(void)
|
||||
{
|
||||
flashfsSize = 0;
|
||||
|
||||
flashPartition = flashFindPartitionByUsage(FLASH_PARTITION_FLASHFS);
|
||||
flashPartition = flashPartitionFindByType(FLASH_PARTITION_TYPE_FLASHFS);
|
||||
flashGeometry = flashGetGeometry();
|
||||
|
||||
if (!flashPartition) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue