fix(sd): añadir sync en la creacion de las cabeceras

This commit is contained in:
Alejandro Guerrero 2026-02-23 13:22:45 +01:00
parent 95c4c51c07
commit 9072c162df
2 changed files with 4 additions and 0 deletions

View file

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