diff --git a/TEF6686_ESP32.ino b/TEF6686_ESP32.ino index 16c624d..1e3bd06 100644 --- a/TEF6686_ESP32.ino +++ b/TEF6686_ESP32.ino @@ -5342,29 +5342,30 @@ void toggleiMSEQ() { } void handleRoot() { - // Attempt to open the CSV file stored in SPIFFS (File System) fs::File file = SPIFFS.open("/logbook.csv", "r"); if (!file) { - // If the file could not be opened, send an error message to the browser webserver.send(500, "text/plain", "Failed to open logbook"); - return; // Exit the function if the file cannot be opened + return; } - // Start building the HTML page to send to the browser String html = ""; html += ""; html += ""; - // Add CSS styling for a modern, dark-themed look + // Add CSS styling html += "