mirror of
https://github.com/meshtastic/firmware.git
synced 2025-02-08 13:41:28 +00:00
trunk fmt
This commit is contained in:
parent
dc0593c5a7
commit
5f90f45ac4
@ -212,17 +212,17 @@ void fsInit()
|
|||||||
LOG_ERROR("Filesystem mount Failed.\n");
|
LOG_ERROR("Filesystem mount Failed.\n");
|
||||||
// assert(0); This auto-formats the partition, so no need to fail here.
|
// assert(0); This auto-formats the partition, so no need to fail here.
|
||||||
}
|
}
|
||||||
#if defined(ARCH_ESP32)
|
#if defined(ARCH_ESP32)
|
||||||
LOG_DEBUG("Filesystem files (%d/%d Bytes):\n", FSCom.usedBytes(), FSCom.totalBytes());
|
LOG_DEBUG("Filesystem files (%d/%d Bytes):\n", FSCom.usedBytes(), FSCom.totalBytes());
|
||||||
#elif defined(ARCH_NRF52)
|
#elif defined(ARCH_NRF52)
|
||||||
/*
|
/*
|
||||||
* nRF52840 has a certain chance of automatic formatting failure.
|
* nRF52840 has a certain chance of automatic formatting failure.
|
||||||
* Try to create a file after initializing the file system. If the creation fails,
|
* Try to create a file after initializing the file system. If the creation fails,
|
||||||
* it means that the file system is not working properly. Please format it manually again.
|
* it means that the file system is not working properly. Please format it manually again.
|
||||||
* */
|
* */
|
||||||
Adafruit_LittleFS_Namespace::File file(FSCom);
|
Adafruit_LittleFS_Namespace::File file(FSCom);
|
||||||
const char *filename = "/meshtastic.txt";
|
const char *filename = "/meshtastic.txt";
|
||||||
if (! file.open(filename, FILE_O_WRITE) ) {
|
if (!file.open(filename, FILE_O_WRITE)) {
|
||||||
LOG_DEBUG("Format ....");
|
LOG_DEBUG("Format ....");
|
||||||
FSCom.format();
|
FSCom.format();
|
||||||
FSCom.begin();
|
FSCom.begin();
|
||||||
|
Loading…
Reference in New Issue
Block a user