1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-07-27 18:02:17 +03:00

Refactoring of FS::info (#779)

This commit is contained in:
Ivan Grokhotkov
2015-11-13 13:23:16 +03:00
parent d7e340fe14
commit d0a944e417
6 changed files with 64 additions and 9 deletions

View File

@ -111,6 +111,21 @@ void setup() {
}
}
{
FSInfo info;
if (!SPIFFS.info(info)) {
fail("info failed");
}
Serial.printf("Total: %u\nUsed: %u\nBlock: %u\nPage: %u\nMax open files: %u\nMax path len: %u\n",
info.totalBytes,
info.usedBytes,
info.blockSize,
info.pageSize,
info.maxOpenFiles,
info.maxPathLength
);
}
{
if (!SPIFFS.format()) {
fail("format failed");