81 ESP_LOGI(TAG, "Partition size: %d, used: %d - %d%%", total, used, (used * 100) / total); |
81 ESP_LOGI(TAG, "Partition size: %d, used: %d - %d%%", total, used, (used * 100) / total); |
82 } |
82 } |
83 TFT_print((char *)"Ok\r\n", LASTX, LASTY); |
83 TFT_print((char *)"Ok\r\n", LASTX, LASTY); |
84 |
84 |
85 // Just to debug, list the /spiffs filesystem. |
85 // Just to debug, list the /spiffs filesystem. |
86 #if 1 |
86 #if 0 |
87 DIR *dir = opendir("/spiffs"); |
87 DIR *dir = opendir("/spiffs"); |
88 struct dirent* de = readdir(dir); |
88 struct dirent* de = readdir(dir); |
89 while (de) { |
89 while (de) { |
90 if (de->d_type == DT_REG) { |
|
91 printf("F "); |
|
92 } |
|
93 if (de->d_type == DT_DIR) { |
|
94 printf("D "); |
|
95 } |
|
96 printf("%s\n", de->d_name); |
90 printf("%s\n", de->d_name); |
97 de = readdir(dir); |
91 de = readdir(dir); |
98 } |
92 } |
99 closedir(dir); |
93 closedir(dir); |
100 #endif |
94 #endif |