Skip to content

Instantly share code, notes, and snippets.

@x29a
Created December 22, 2020 09:28
Show Gist options
  • Save x29a/a3a0b5dfded4d718e566a72ad23c21f1 to your computer and use it in GitHub Desktop.
Save x29a/a3a0b5dfded4d718e566a72ad23c21f1 to your computer and use it in GitHub Desktop.
SMA Q2 nRF broken filesystem fix
// file location: components/libraries/fds/fds.c
// Initialize the page structure (m_pages), and determine which
// initialization steps are required given the current state of the filesystem.
fds_init_opts_t init_opts = pages_init();
if (init_opts == NO_PAGES)
{
// try a reformat of the flash
init_opts = FRESH_INSTALL;
// instead of returning an error
//return FDS_ERR_NO_PAGES;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment