Revert file.format method.
This commit is contained in:
parent
c82cc3f7c5
commit
8887085ef8
|
@ -79,6 +79,7 @@ void myspiffs_unmount() {
|
|||
// Returns 1 if OK, 0 for error
|
||||
int myspiffs_format( void )
|
||||
{
|
||||
#if 0
|
||||
SPIFFS_unmount(&fs);
|
||||
if(0 == SPIFFS_format(&fs))
|
||||
{
|
||||
|
@ -88,7 +89,7 @@ int myspiffs_format( void )
|
|||
{
|
||||
return 0;
|
||||
}
|
||||
#if 0
|
||||
#else
|
||||
u32_t sect_first, sect_last;
|
||||
sect_first = ( u32_t )platform_flash_get_first_free_block_address( NULL );
|
||||
sect_first += 0x3000;
|
||||
|
|
Loading…
Reference in New Issue