Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
Nodemcu Firmware
Commits
8887085e
Commit
8887085e
authored
May 21, 2015
by
HuangRui
Browse files
Revert file.format method.
parent
c82cc3f7
Changes
1
Show whitespace changes
Inline
Side-by-side
app/spiffs/spiffs.c
View file @
8887085e
...
@@ -79,6 +79,7 @@ void myspiffs_unmount() {
...
@@ -79,6 +79,7 @@ void myspiffs_unmount() {
// Returns 1 if OK, 0 for error
// Returns 1 if OK, 0 for error
int
myspiffs_format
(
void
)
int
myspiffs_format
(
void
)
{
{
#if 0
SPIFFS_unmount(&fs);
SPIFFS_unmount(&fs);
if(0 == SPIFFS_format(&fs))
if(0 == SPIFFS_format(&fs))
{
{
...
@@ -88,7 +89,7 @@ int myspiffs_format( void )
...
@@ -88,7 +89,7 @@ int myspiffs_format( void )
{
{
return 0;
return 0;
}
}
#
if 0
#
else
u32_t
sect_first
,
sect_last
;
u32_t
sect_first
,
sect_last
;
sect_first
=
(
u32_t
)
platform_flash_get_first_free_block_address
(
NULL
);
sect_first
=
(
u32_t
)
platform_flash_get_first_free_block_address
(
NULL
);
sect_first
+=
0x3000
;
sect_first
+=
0x3000
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment