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");