This commit is contained in:
pgp 2021-02-05 16:44:01 +01:00
parent 2ea5e9cd1f
commit 2b865d8e5c

View file

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