You've already forked TEF6686_ESP32
Update code to be compatible with board manager v3.2.0
This commit is contained in:
@@ -186,17 +186,6 @@ void handleDownloadCSV() {
|
||||
}
|
||||
|
||||
bool handleCreateNewLogbook() {
|
||||
// Quick check if SPIFFS is mounted and accessible
|
||||
if (!SPIFFS.exists("/")) { // "/" should always exist if mounted
|
||||
// SPIFFS not accessible, try to format and remount
|
||||
if (!SPIFFS.format()) {
|
||||
return false; // format failed
|
||||
}
|
||||
if (!SPIFFS.begin()) {
|
||||
return false; // remount failed
|
||||
}
|
||||
}
|
||||
|
||||
// Check if the file "logbook.csv" already exists
|
||||
if (SPIFFS.exists("/logbook.csv")) {
|
||||
// If it exists, delete the file
|
||||
|
||||
Reference in New Issue
Block a user