modifs scribeSD vRotMoyen

This commit is contained in:
pgp 2021-04-16 14:25:35 +02:00
parent f34b691ed4
commit bef81e1b6d
2 changed files with 9 additions and 2 deletions

7
.vscode/settings.json vendored Normal file
View file

@ -0,0 +1,7 @@
{
"files.associations": {
"bitset": "cpp",
"fstream": "cpp",
"ostream": "cpp"
}
}

View file

@ -414,10 +414,10 @@ void scribe_sd (){
if ( sem_scribe == true && chrono_scribe >= inter_ecriture ){
//Serial.println("balise scribe");
int vRotMoyen = count*60000/(pptr*chrono_scribe);
char timestamp[] = "YY-MM-DD-hh:mm:ss";
char *horodatage = now.toString(timestamp);
char buffer[64];
int vRotMoyen = count*60000/(pptr*chrono_scribe);
snprintf(buffer, sizeof buffer, "%d", vRotMoyen);
appendFile(SD, fichier, horodatage);
appendFile(SD, fichier, " " );