diff --git a/esp3d/configuration.h b/esp3d/configuration.h index cd923502..ac763979 100644 --- a/esp3d/configuration.h +++ b/esp3d/configuration.h @@ -99,13 +99,13 @@ //ESP_SPIFFS_FILESYSTEM 0 //ESP_FAT_FILESYSTEM 1 //ESP_LITTLEFS_FILESYSTEM 2 //Not Yet implemented -#define FILESYSTEM_FEATURE ESP_SPIFFS_FILESYSTEM +#define FILESYSTEM_FEATURE ESP_FAT_FILESYSTEM //DIRECT_PIN_FEATURE: allow to access pin using ESP201 command #define DIRECT_PIN_FEATURE //TIMESTAMP_FEATURE: set time system -#define TIMESTAMP_FEATURE +//#define TIMESTAMP_FEATURE //FILESYSTEM_TIMESTAMP_FEATURE: allow to get last write time from FILESYSTEM files //#define FILESYSTEM_TIMESTAMP_FEATURE diff --git a/esp3d/src/include/version.h b/esp3d/src/include/version.h index 59ef5f3e..3d1773c0 100644 --- a/esp3d/src/include/version.h +++ b/esp3d/src/include/version.h @@ -22,7 +22,7 @@ #define _VERSION_ESP3D_H //version and sources location -#define FW_VERSION "3.0.0.a10" +#define FW_VERSION "3.0.0.a11" #define REPOSITORY "https://github.com/luc-github/ESP3D" #endif //_VERSION_ESP3D_H diff --git a/esp3d/src/modules/filesystem/esp_filesystem.cpp b/esp3d/src/modules/filesystem/esp_filesystem.cpp index cebf4c14..0841863d 100644 --- a/esp3d/src/modules/filesystem/esp_filesystem.cpp +++ b/esp3d/src/modules/filesystem/esp_filesystem.cpp @@ -144,7 +144,10 @@ size_t ESP_FileSystem::max_update_size() #if defined (ARDUINO_ARCH_ESP32) //Is OTA available ? if (esp_ota_get_running_partition()) { - flashsize = ESP.getFreeSketchSpace() + ESP.getSketchSize(); + const esp_partition_t* partition = esp_ota_get_next_update_partition(NULL); + if (partition){ + flashsize = partition->size; + } } else { flashsize = 0; }