Fix #1211 - adjust ESP32 example to serve FS

This commit is contained in:
cpq committed 2021-02-03 02:13:05 +00:00
1 parent 6827972f71
commit 457d76b049
12 files changed
+179 -123

No files matched your search

+1 -1
View File
@@ -34,7 +34,7 @@ char *mg_file_read(const char *path) {
bool mg_file_write(const char *path, const void *buf, size_t len) {
bool result = false;
FILE *fp;
char tmp[PATH_MAX];
char tmp[MG_PATH_MAX];
snprintf(tmp, sizeof(tmp), "%s.%d", path, rand());
fp = fopen(tmp, "wb");
if (fp != NULL) {