Skip to content

Commit

Permalink
WIP: TODO's and testplan
Browse files Browse the repository at this point in the history
  • Loading branch information
tyeth committed Oct 11, 2024
1 parent 2c59f39 commit 7413bdf
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/provisioning/tinyusb/Wippersnapper_FS.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ Wippersnapper_FS::Wippersnapper_FS() {

// If a filesystem does not already exist - attempt to initialize a new
// filesystem
if (!initFilesystem() && !initFilesystem(true)) {
if (!initFilesystem()){ //} && !initFilesystem(true)) {
setStatusLEDColor(RED);
fsHalt("ERROR Initializing Filesystem");
}
Expand All @@ -106,7 +106,7 @@ Wippersnapper_FS::Wippersnapper_FS() {

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

/************************************************************/
Expand Down Expand Up @@ -150,13 +150,16 @@ bool Wippersnapper_FS::initFilesystem(bool force_format) {
if (!wipperFatFs.begin(&flash))
return false;

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

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

//TODO: don't do this every time, only if missing (less power usage? less block wear)
// No file indexing on macOS
if (!wipperFatFs.exists("/.fseventsd/no_log"))
{
Expand Down
7 changes: 7 additions & 0 deletions testplan.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
copy and analyse the hex difference for a corrupted file system versus freshly saved secrets + hunky dorey

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

then add the metro-s3

then add FTH2221A?

0 comments on commit 7413bdf

Please sign in to comment.