From ec7d79e458fbe6b0882d2160e0868c939c7e5140 Mon Sep 17 00:00:00 2001 From: Karai Csaba Date: Sun, 1 May 2016 08:24:47 +0200 Subject: [PATCH] Fixed: reinitialize user page after upload --- esp-link/cgiwebserver.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/esp-link/cgiwebserver.c b/esp-link/cgiwebserver.c index de4f3f5..a34737f 100644 --- a/esp-link/cgiwebserver.c +++ b/esp-link/cgiwebserver.c @@ -7,6 +7,7 @@ #include "multipart.h" #include "espfsformat.h" #include "config.h" +#include "web-server.h" int ICACHE_FLASH_ATTR webServerMultipartCallback(MultipartCmd cmd, char *data, int dataLen, int position) { @@ -59,6 +60,7 @@ int ICACHE_FLASH_ATTR webServerMultipartCallback(MultipartCmd cmd, char *data, i { uint32_t magic = ESPFS_MAGIC; spi_flash_write( (int)getUserPageSectionStart(), (uint32_t *)&magic, sizeof(uint32_t) ); + webServerInit(); } break; }