Fixed: reinitialize user page after upload

pull/183/head
Karai Csaba 9 years ago committed by cskarai
parent 59a76f60ea
commit e36013946e
  1. 2
      esp-link/cgiwebserver.c

@ -7,6 +7,7 @@
#include "multipart.h" #include "multipart.h"
#include "espfsformat.h" #include "espfsformat.h"
#include "config.h" #include "config.h"
#include "web-server.h"
int ICACHE_FLASH_ATTR webServerMultipartCallback(MultipartCmd cmd, char *data, int dataLen, int position) 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; uint32_t magic = ESPFS_MAGIC;
spi_flash_write( (int)getUserPageSectionStart(), (uint32_t *)&magic, sizeof(uint32_t) ); spi_flash_write( (int)getUserPageSectionStart(), (uint32_t *)&magic, sizeof(uint32_t) );
webServerInit();
} }
break; break;
} }

Loading…
Cancel
Save