diff --git a/libraries/LittleFS/examples/LittleFS_Timestamp/LittleFS_Timestamp.ino b/libraries/LittleFS/examples/LittleFS_Timestamp/LittleFS_Timestamp.ino index 4c6b487ae..ce85de034 100644 --- a/libraries/LittleFS/examples/LittleFS_Timestamp/LittleFS_Timestamp.ino +++ b/libraries/LittleFS/examples/LittleFS_Timestamp/LittleFS_Timestamp.ino @@ -152,21 +152,25 @@ void setup() { getLocalTime(&tmstruct, 5000); Serial.printf("\nNow is : %d-%02d-%02d %02d:%02d:%02d\n", (tmstruct.tm_year) + 1900, (tmstruct.tm_mon) + 1, tmstruct.tm_mday, tmstruct.tm_hour, tmstruct.tm_min, tmstruct.tm_sec); Serial.println(""); - - Serial.printf("Formatting LittleFS filesystem\n"); + Serial.println("Formatting LittleFS filesystem"); LittleFS.format(); + Serial.println("Mount LittleFS"); + if (!LittleFS.begin()) { + Serial.println("LittleFS mount failed"); + return; + } listDir("/"); deleteFile("/hello.txt"); writeFile("/hello.txt", "Hello "); appendFile("/hello.txt", "World!\n"); listDir("/"); - Serial.printf("The timestamp should be valid above\n"); + Serial.println("The timestamp should be valid above"); - Serial.printf("Now unmount and remount and perform the same operation.\n"); - Serial.printf("Timestamp should be valid, data should be good.\n"); + Serial.println("Now unmount and remount and perform the same operation."); + Serial.println("Timestamp should be valid, data should be good."); LittleFS.end(); - Serial.printf("Now mount it\n"); + Serial.println("Now mount it"); if (!LittleFS.begin()) { Serial.println("LittleFS mount failed"); return;