Skip to content

Commit 92fed38

Browse files
committed
style
1 parent 494e51f commit 92fed38

File tree

2 files changed

+13
-13
lines changed

2 files changed

+13
-13
lines changed

libraries/FSTools/examples/Basic_example/Basic_example.ino

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,21 +32,21 @@ FSTools fstools;
3232

3333
#ifndef STASSID
3434
#define STASSID "xxxx"
35-
#define STAPSK "xxxx"
35+
#define STAPSK "xxxx"
3636
#endif
3737

3838
const char* ssid = STASSID;
3939
const char* password = STAPSK;
4040

4141

4242
bool migrateFS() {
43-
if (!fstools.attemptToMountFS(LittleFS)) { // Attempts to mount LittleFS without autoformat...
43+
if (!fstools.attemptToMountFS(LittleFS)) { // Attempts to mount LittleFS without autoformat...
4444
Serial.println(F("Default FS not found"));
45-
if (fstools.mountAlternativeFS(FST::SPIFFS /* FST::LITTLEFS */, TARGET_FS_LAYOUT, true)) {
45+
if (fstools.mountAlternativeFS(FST::SPIFFS /* FST::LITTLEFS */, TARGET_FS_LAYOUT, true)) {
4646
Serial.println(F("Alternative found"));
4747
if (fstools.moveFS(LittleFS)) {
4848
Serial.println(F("FileSystem Moved New FS contents:"));
49-
fstools.fileListIterator(LittleFS, "/", [](File & f) {
49+
fstools.fileListIterator(LittleFS, "/", [](File& f) {
5050
Serial.printf_P(PSTR(" File: %-30s [%8uB]\n"), f.fullName(), f.size());
5151
});
5252
return true;
@@ -70,7 +70,7 @@ void initWiFiOTA() {
7070
String type;
7171
if (ArduinoOTA.getCommand() == U_FLASH) {
7272
type = "sketch";
73-
} else { // U_FS
73+
} else { // U_FS
7474
type = "filesystem";
7575
}
7676

@@ -116,7 +116,7 @@ void setup() {
116116

117117
Serial.println("Booting");
118118

119-
migrateFS(); // MUST call this before calling your own begin();
119+
migrateFS(); // MUST call this before calling your own begin();
120120

121121
initWiFiOTA();
122122

libraries/FSTools/examples/custom_FS_example/custom_FS_example.ino

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
#define TARGET_FS_LAYOUT FST::layout_4m3m
3131

3232
const uint32_t startSector = FST::layout_4m1m.startAddr - 0x40200000;
33-
const uint32_t tempFSsize = FST::layout_4m1m.endAddr - FST::layout_4m1m.startAddr;
33+
const uint32_t tempFSsize = FST::layout_4m1m.endAddr - FST::layout_4m1m.startAddr;
3434

3535
fs::FS LittleFS_Different = FS(FSImplPtr(new littlefs_impl::LittleFSImpl(startSector, tempFSsize, FS_PHYS_PAGE, FS_PHYS_BLOCK, 5)));
3636

@@ -39,21 +39,21 @@ FSTools fstools;
3939

4040
#ifndef STASSID
4141
#define STASSID "xxxx"
42-
#define STAPSK "xxxx"
42+
#define STAPSK "xxxx"
4343
#endif
4444

4545
const char* ssid = STASSID;
4646
const char* password = STAPSK;
4747

4848

4949
bool migrateFS() {
50-
if (!fstools.attemptToMountFS(LittleFS_Different)) { // Attempts to mount LittleFS without autoformat...
50+
if (!fstools.attemptToMountFS(LittleFS_Different)) { // Attempts to mount LittleFS without autoformat...
5151
Serial.println(F("Default FS not found"));
52-
if (fstools.mountAlternativeFS(FST::SPIFFS /* FST::LITTLEFS */, TARGET_FS_LAYOUT, true)) {
52+
if (fstools.mountAlternativeFS(FST::SPIFFS /* FST::LITTLEFS */, TARGET_FS_LAYOUT, true)) {
5353
Serial.println(F("Alternative found"));
5454
if (fstools.moveFS(LittleFS_Different)) {
5555
Serial.println(F("FileSystem Moved New FS contents:"));
56-
fstools.fileListIterator(LittleFS_Different, "/", [](File & f) {
56+
fstools.fileListIterator(LittleFS_Different, "/", [](File& f) {
5757
Serial.printf_P(PSTR(" File: %-30s [%8uB]\n"), f.fullName(), f.size());
5858
});
5959
return true;
@@ -77,7 +77,7 @@ void initWiFiOTA() {
7777
String type;
7878
if (ArduinoOTA.getCommand() == U_FLASH) {
7979
type = "sketch";
80-
} else { // U_FS
80+
} else { // U_FS
8181
type = "filesystem";
8282
}
8383

@@ -123,7 +123,7 @@ void setup() {
123123

124124
Serial.println("Booting");
125125

126-
migrateFS(); // MUST call this before calling your own begin();
126+
migrateFS(); // MUST call this before calling your own begin();
127127

128128
initWiFiOTA();
129129

0 commit comments

Comments
 (0)