format: erase more sectors to be on the safe side
This commit is contained in:
parent
7f4aea528d
commit
fa1d207bfe
|
@ -35,7 +35,7 @@ inline void format_formatDF(void)
|
||||||
char buf[512];
|
char buf[512];
|
||||||
|
|
||||||
memset(buf, 0, 512);
|
memset(buf, 0, 512);
|
||||||
for(i=0; i<20; i++) dataflash_write(buf, i, 1);
|
for(i=0; i<100; i++) dataflash_write(buf, i, 1);
|
||||||
|
|
||||||
memcpy(buf, init1, sizeof(init1));
|
memcpy(buf, init1, sizeof(init1));
|
||||||
memcpy(buf+0x24, init2, sizeof(init2));
|
memcpy(buf+0x24, init2, sizeof(init2));
|
||||||
|
|
Loading…
Reference in New Issue