Revert "Revert "System instable""

This reverts commit 1d9ef7e634.
This commit is contained in:
jomjol
2022-11-04 21:59:22 +01:00
parent 1d9ef7e634
commit 7e26744e2e
31 changed files with 126 additions and 1808 deletions

View File

@@ -25,7 +25,6 @@ extern "C" {
#include "ClassLogFile.h"
#include "esp_vfs_fat.h"
#include "esp_mac.h"
static const char* TAG = "helper";
@@ -117,11 +116,7 @@ string getSDCardPartitionAllocationSize(){
f_getfree("0:", (DWORD *)&fre_clust, &fs);
allocation_size = fs->ssize;
#if (ESP_IDF_VERSION >= ESP_IDF_VERSION_VAL(5, 0, 0))
printf("SD Card Partition Allocation Size (bytes): %lu)\n", allocation_size);
#else
printf("SD Card Partition Allocation Size (bytes): %zu)\n", allocation_size);
#endif
printf("SD Card Partition Allocation Size (bytes): %d)\n", allocation_size);
return std::to_string(allocation_size);
}