From 33666e7d6b3919cdf72f129281e55b934a523dac Mon Sep 17 00:00:00 2001 From: Sergey Lyubka Date: Tue, 8 Feb 2022 14:13:47 +0000 Subject: [PATCH] Fix ESP32 example --- examples/esp32/main/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/esp32/main/main.c b/examples/esp32/main/main.c index 81d4b27a..f4f63f2c 100644 --- a/examples/esp32/main/main.c +++ b/examples/esp32/main/main.c @@ -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()); } else { 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}; mg_http_serve_dir(c, hm, &opts); }