mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2024-11-29 07:24:13 +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()
|
||||
{
|
||||
if(PIOS_Flash_W25X_EraseSector(OBJECT_TABLE_START) != 0)
|
||||
if(PIOS_Flash_W25X_EraseSector(0) != 0)
|
||||
return -1;
|
||||
|
||||
uint32_t object_table_magic = OBJECT_TABLE_MAGIC;
|
||||
|
Loading…
Reference in New Issue
Block a user