Skip to content

Commit 735aed4

Browse files
committed
WIP: TODO's and testplan
1 parent 3538977 commit 735aed4

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

src/provisioning/tinyusb/Wippersnapper_FS.cpp

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ Wippersnapper_FS::Wippersnapper_FS() {
105105

106106
// If a filesystem does not already exist - attempt to initialize a new
107107
// filesystem
108-
if (!initFilesystem() && !initFilesystem(true)) {
108+
if (!initFilesystem()){ //} && !initFilesystem(true)) {
109109
setStatusLEDColor(RED);
110110
fsHalt("ERROR Initializing Filesystem");
111111
}
@@ -115,7 +115,7 @@ Wippersnapper_FS::Wippersnapper_FS() {
115115

116116
// If we created a new filesystem, halt until user RESETs device.
117117
if (_freshFS)
118-
fsHalt("New filesystem created! Press the reset button on your board.");
118+
fsHalt("New filesystem created! Press the reset button on your board."); // TODO: just reset here after printing message then a delay/countdown.
119119
}
120120

121121
/************************************************************/
@@ -159,13 +159,16 @@ bool Wippersnapper_FS::initFilesystem(bool force_format) {
159159
if (!wipperFatFs.begin(&flash))
160160
return false;
161161

162+
//TODO: Don't do this unless we need the space and createSecrets fails
162163
// If CircuitPython was previously installed - erase CPY FS
163164
eraseCPFS();
164165

166+
//TODO: don't do this every time, only if content differs?
165167
// If WipperSnapper was previously installed - remove the
166168
// wippersnapper_boot_out.txt file
167169
eraseBootFile();
168170

171+
//TODO: don't do this every time, only if missing (less power usage? less block wear)
169172
// No file indexing on macOS
170173
if (!wipperFatFs.exists("/.fseventsd/no_log"))
171174
{

testplan.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
copy and analyse the hex difference for a corrupted file system versus freshly saved secrets + hunky dorey
2+
3+
retest first secrets.json acces on a new device on tinyUF2 0.18.2 and WS 88, versus tinyUF2 0.20.1 and WS88, then with no-ds-format-nor-file-recreation instead of WS88
4+
5+
then add the metro-s3
6+
7+
then add FTH2221A?

0 commit comments

Comments
 (0)