From 2b865d8e5cbec8041a3aa764a69246e77eabdec4 Mon Sep 17 00:00:00 2001 From: pgp Date: Fri, 5 Feb 2021 16:44:01 +0100 Subject: [PATCH] sync --- src/main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index f537170..9d1d656 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -320,10 +320,10 @@ void sd_init() { } now = rtc.now(); - char date_format[] = "MM-DD-hh-mm"; + char date_format[12] = "MM-DD-hh-mm"; char *date = now.toString(date_format); strcat(fichier,date); - char entete[] = "# YY-MM-DD:hh:mm:ss Vrot en tr/min \n"; + char entete[64] = "# YY-MM-DD:hh:mm:ss Vrot en tr/min \n"; writeFile(SD, fichier, "capteur n° "); appendFile(SD, fichier, numero_capteur ); appendFile(SD, fichier, "\n");