diff --git a/firmware/filesystem/format.c b/firmware/filesystem/format.c index 7b9b55c..7535b51 100644 --- a/firmware/filesystem/format.c +++ b/firmware/filesystem/format.c @@ -25,16 +25,16 @@ uint8_t init2[] = {0x80, 0x00, 0x29, 0x37, void format_formatDF(void) { - int n,i; + int i; char buf[512]; - dataflash_initialize(); - delayms(100); + //dataflash_initialize(); + //delayms(100); for(i=0; i< 512; i++) buf[i] = 0x00; - for(i=0; i<1024; i++) - dataflash_write(buf, i, 1); + //for(i=0; i<1024; i++) + // dataflash_write(buf, i, 1); memcpy(buf, init1, sizeof(init1)); memcpy(buf+0x24, init2, sizeof(init2)); diff --git a/firmware/main.c b/firmware/main.c index 4dd682b..76ae0a2 100644 --- a/firmware/main.c +++ b/firmware/main.c @@ -47,12 +47,13 @@ int main(void) { // initialise basic badge functions rbInit(); - fsInit(); lcdInit(); // display lcdFill(0); lcdDisplay(); + + fsInit(); wrapper(); // see module/ subdirectory }