30
30
#define TARGET_FS_LAYOUT FST::layout_4m3m
31
31
32
32
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;
34
34
35
35
fs::FS LittleFS_Different = FS(FSImplPtr(new littlefs_impl::LittleFSImpl(startSector, tempFSsize, FS_PHYS_PAGE, FS_PHYS_BLOCK, 5 )));
36
36
@@ -39,21 +39,21 @@ FSTools fstools;
39
39
40
40
#ifndef STASSID
41
41
#define STASSID " xxxx"
42
- #define STAPSK " xxxx"
42
+ #define STAPSK " xxxx"
43
43
#endif
44
44
45
45
const char * ssid = STASSID;
46
46
const char * password = STAPSK;
47
47
48
48
49
49
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...
51
51
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 )) {
53
53
Serial.println (F (" Alternative found" ));
54
54
if (fstools.moveFS (LittleFS_Different)) {
55
55
Serial.println (F (" FileSystem Moved New FS contents:" ));
56
- fstools.fileListIterator (LittleFS_Different, " /" , [](File & f) {
56
+ fstools.fileListIterator (LittleFS_Different, " /" , [](File& f) {
57
57
Serial.printf_P (PSTR (" File: %-30s [%8uB]\n " ), f.fullName (), f.size ());
58
58
});
59
59
return true ;
@@ -77,7 +77,7 @@ void initWiFiOTA() {
77
77
String type;
78
78
if (ArduinoOTA.getCommand () == U_FLASH) {
79
79
type = " sketch" ;
80
- } else { // U_FS
80
+ } else { // U_FS
81
81
type = " filesystem" ;
82
82
}
83
83
@@ -123,7 +123,7 @@ void setup() {
123
123
124
124
Serial.println (" Booting" );
125
125
126
- migrateFS (); // MUST call this before calling your own begin();
126
+ migrateFS (); // MUST call this before calling your own begin();
127
127
128
128
initWiFiOTA ();
129
129
0 commit comments