Skip to content

Commit

Permalink
trunk fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
lewisxhe authored and caveman99 committed May 7, 2024
1 parent 8e7ede1 commit 1d58334
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/FSCommon.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -208,8 +208,8 @@ void rmDir(const char *dirname)
bool fsCheck()
{
#if defined(ARCH_NRF52)
size_t write_size = 0;
size_t read_size = 0;
size_t write_size = 0;
size_t read_size = 0;
char buf[32] = {0};

Adafruit_LittleFS_Namespace::File file(FSCom);
Expand All @@ -221,7 +221,7 @@ bool fsCheck()
if (file.open(filename, FILE_O_WRITE)) {
write_size = file.write(text);
} else {
LOG_DEBUG("Open file failed .\n");;
LOG_DEBUG("Open file failed .\n");
goto FORMAT_FS;
}

Expand Down Expand Up @@ -295,7 +295,8 @@ void fsInit()
// Can add a screen to display error status later.
if (!ret) {
while (1) {
Serial.println("The file system is damaged and cannot proceed to the next step.\n"); delay(1000);
Serial.println("The file system is damaged and cannot proceed to the next step.\n");
delay(1000);
}
}
#else
Expand Down

0 comments on commit 1d58334

Please sign in to comment.