Update code to be compatible with board manager v3.2.0

This commit is contained in:
Sjef Verhoeven PE5PVB
2025-08-27 16:16:35 +02:00
parent 0694726b8b
commit 89cb362d75
9 changed files with 63 additions and 62 deletions

View File

@@ -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