Skip to content

Commit

Permalink
Bugfixes for ESP32-Arduino2
Browse files Browse the repository at this point in the history
  • Loading branch information
biologist79 committed Sep 8, 2022
1 parent 972c0ec commit fae1d0b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
12 changes: 10 additions & 2 deletions src/Web.cpp
Expand Up @@ -937,15 +937,23 @@ bool explorerDeleteDirectory(File dir) {
if (file.isDirectory()) {
explorerDeleteDirectory(file);
} else {
gFSystem.remove(file.name());
#if ESP_ARDUINO_VERSION_MAJOR >= 2
gFSystem.remove(file.path());
#else
gFSystem.remove(file.name());
#endif
}

file = dir.openNextFile();

esp_task_wdt_reset();
}

return gFSystem.rmdir(dir.name());
#if ESP_ARDUINO_VERSION_MAJOR >= 2
return gFSystem.rmdir(dir.path());
#else
return gFSystem.rmdir(dir.name());
#endif
}

// Handles delete-requests for cachefiles.
Expand Down
2 changes: 1 addition & 1 deletion src/revision.h
@@ -1,4 +1,4 @@
#ifndef __REVISION_H__
#define __REVISION_H__
constexpr const char softwareRevision[] PROGMEM = "Software-revision: 20220908-1";
constexpr const char softwareRevision[] PROGMEM = "Software-revision: 20220908-2";
#endif

0 comments on commit fae1d0b

Please sign in to comment.