changements compte-tour & scribe

This commit is contained in:
pgp 2021-02-01 17:43:39 +01:00
parent 19bc7fd973
commit b3b2ee4c54

View file

@ -341,12 +341,14 @@ void scribe_sd (){
char timestamp[] = "YY-MM-DD-hh:mm:ss";
char *horodatage = now.toString(timestamp);
char buffer[64];
snprintf(buffer, sizeof buffer, "%d", vRotReel);
int chrono_scribe = millis() - start_chrono_scribe;
int vRotMoyen = count*60000/(pptr*chrono_scribe);
snprintf(buffer, sizeof buffer, "%d", vRotMoyen);
appendFile(SD, fichier, horodatage);
appendFile(SD, fichier, " " );
appendFile(SD, fichier, buffer);
appendFile(SD, fichier, "\n" );
//Serial.println(vRotReel);
Serial.println("ECRITURE SUR SD");
sem_scribe = false;
}
}