From de5bdffe27e73dfc63b711ce82c383b2b5262f76 Mon Sep 17 00:00:00 2001 From: Sjef Verhoeven PE5PVB Date: Thu, 9 Jan 2025 23:45:30 +0100 Subject: [PATCH] When click on a row in the logbook the fmdx map will be opened and transmitters matching frequency and PI will be highlighted --- TEF6686_ESP32.ino | 116 +++++++++++++++++++++++++++------------------- 1 file changed, 69 insertions(+), 47 deletions(-) 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 += "