From daf786421262d558ca9bee6a1815d9ed6372cbba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Xose=20P=C3=A9rez?= Date: Wed, 26 Sep 2018 07:56:54 +0200 Subject: [PATCH] Fix issue when SPIFFS_SUPPORT is enabled (#1225) --- code/espurna/utils.ino | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/code/espurna/utils.ino b/code/espurna/utils.ino index 4032c2b2..96f6fbea 100644 --- a/code/espurna/utils.ino +++ b/code/espurna/utils.ino @@ -333,12 +333,12 @@ void info() { FSInfo fs_info; bool fs = SPIFFS.info(fs_info); if (fs) { - DEBUG_MSG_P(PSTR("[MAIN] SPIFFS total size: %8u bytes / %4d sectors\n"), fs_info.totalBytes, sectors(fs_info.totalBytes)); - DEBUG_MSG_P(PSTR("[MAIN] used size: %8u bytes\n"), fs_info.usedBytes); - DEBUG_MSG_P(PSTR("[MAIN] block size: %8u bytes\n"), fs_info.blockSize); - DEBUG_MSG_P(PSTR("[MAIN] page size: %8u bytes\n"), fs_info.pageSize); - DEBUG_MSG_P(PSTR("[MAIN] max files: %8u\n"), fs_info.maxOpenFiles); - DEBUG_MSG_P(PSTR("[MAIN] max length: %8u\n"), fs_info.maxPathLength); + DEBUG_MSG_P(PSTR("[MAIN] SPIFFS total size : %8u bytes / %4d sectors\n"), fs_info.totalBytes, info_bytes2sectors(fs_info.totalBytes)); + DEBUG_MSG_P(PSTR("[MAIN] used size : %8u bytes\n"), fs_info.usedBytes); + DEBUG_MSG_P(PSTR("[MAIN] block size : %8u bytes\n"), fs_info.blockSize); + DEBUG_MSG_P(PSTR("[MAIN] page size : %8u bytes\n"), fs_info.pageSize); + DEBUG_MSG_P(PSTR("[MAIN] max files : %8u\n"), fs_info.maxOpenFiles); + DEBUG_MSG_P(PSTR("[MAIN] max length : %8u\n"), fs_info.maxPathLength); } else { DEBUG_MSG_P(PSTR("[MAIN] No SPIFFS partition\n")); }