mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2024-12-02 10:24:11 +01:00
FlashFS: Should clear the 0 sector when wiping flash chip, not 10 bytes in.
This commit is contained in:
parent
a13c8470d3
commit
0f5fe54329
@ -105,7 +105,7 @@ int32_t PIOS_FLASHFS_Init()
|
|||||||
*/
|
*/
|
||||||
static int32_t PIOS_FLASHFS_CleabObjectTableHeader()
|
static int32_t PIOS_FLASHFS_CleabObjectTableHeader()
|
||||||
{
|
{
|
||||||
if(PIOS_Flash_W25X_EraseSector(OBJECT_TABLE_START) != 0)
|
if(PIOS_Flash_W25X_EraseSector(0) != 0)
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
uint32_t object_table_magic = OBJECT_TABLE_MAGIC;
|
uint32_t object_table_magic = OBJECT_TABLE_MAGIC;
|
||||||
|
Loading…
Reference in New Issue
Block a user