Fix ESP32 example

This commit is contained in:
Sergey Lyubka committed 2022-04-05 12:54:20 +01:00
1 parent 0ed64707f3
commit b20eded30e
7 files changed
+70 -112

No files matched your search

+1 -1
View File
@@ -41,7 +41,7 @@ static time_t ff_time_to_epoch(uint16_t fdate, uint16_t ftime) {
static int ff_stat(const char *path, size_t *size, time_t *mtime) {
FILINFO fi;
if (path[0] == '\0' || strcmp(path, MG_FATFS_ROOT) == 0) {
if (path[0] == '\0') {
if (size) *size = 0;
if (mtime) *mtime = 0;
return MG_FS_DIR;