mirror of
https://github.com/cesanta/mongoose.git
synced 2026-11-26 20:38:25 +00:00
Fix ESP32 example
This commit is contained in:
1 parent
40d4c7e410
commit
33666e7d6b
1 file changed
+1
-1
@@ -27,7 +27,7 @@ static void cb(struct mg_connection *c, int ev, void *ev_data, void *fn_data) {
|
|||||||
mg_http_reply(c, 200, "", "{\"ram\": %lu}\n", xPortGetFreeHeapSize());
|
mg_http_reply(c, 200, "", "{\"ram\": %lu}\n", xPortGetFreeHeapSize());
|
||||||
} else {
|
} else {
|
||||||
struct mg_fs fs = mg_fs_posix;
|
struct mg_fs fs = mg_fs_posix;
|
||||||
fs.stat = my_stat;
|
fs.st = my_stat;
|
||||||
struct mg_http_serve_opts opts = {.root_dir = FS_ROOT, .fs = &fs};
|
struct mg_http_serve_opts opts = {.root_dir = FS_ROOT, .fs = &fs};
|
||||||
mg_http_serve_dir(c, hm, &opts);
|
mg_http_serve_dir(c, hm, &opts);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user