From 9072c162df7b1dae834cc61d59652c03e203a3c4 Mon Sep 17 00:00:00 2001 From: Alejandro Guerrero Date: Mon, 23 Feb 2026 13:22:45 +0100 Subject: [PATCH] =?UTF-8?q?fix(sd):=20a=C3=B1adir=20sync=20en=20la=20creac?= =?UTF-8?q?ion=20de=20las=20cabeceras?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 3 +++ G26-Telemetria.ino | 1 + 2 files changed, 4 insertions(+) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..0535523 --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +.vscode/c_cpp_properties.json +.vscode/launch.json +.vscode/settings.json diff --git a/G26-Telemetria.ino b/G26-Telemetria.ino index 0a82dd5..6f126f3 100644 --- a/G26-Telemetria.ino +++ b/G26-Telemetria.ino @@ -30,6 +30,7 @@ void setup() { // Si el archivo es nuevo (tamaƱo 0), escribimos la cabecera if (logFile.fileSize() == 0) { logFile.println("Time,ECT"); + logFile.sync(); } // El archivo se queda abierto y listo.