From 6096ba30dbe0fbc20eb7eed1082f35d40aa674b8 Mon Sep 17 00:00:00 2001 From: Jindra Dolezy Date: Sat, 11 Apr 2015 12:01:14 +0200 Subject: [PATCH] Using ESPFS_POS in espFsInit in user_main.c --- user/user_main.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/user/user_main.c b/user/user_main.c index 70af276..b6cd66f 100644 --- a/user/user_main.c +++ b/user/user_main.c @@ -79,9 +79,9 @@ void user_init(void) { stdoutInit(); ioInit(); - // 0x40200000 is the base address for spi flash memory mapping, 0x12000 is the position - // where image is written in flash - espFsInit((void*)(0x40200000 + 0x12000)); + // 0x40200000 is the base address for spi flash memory mapping, ESPFS_POS is the position + // where image is written in flash that is defined in Makefile. + espFsInit((void*)(0x40200000 + ESPFS_POS)); httpdInit(builtInUrls, 80); os_printf("\nReady\n"); }