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

@ -406,7 +406,7 @@ void scribe_sd (){
pcnt_counter_pause(PCNT_TEST_UNIT);
pcnt_counter_clear(PCNT_TEST_UNIT);
pcnt_counter_resume(PCNT_TEST_UNIT);
start_chrono_scribe = millis();
start_chrono_scribe = millis();
}
chrono_scribe = millis() - start_chrono_scribe;
//Serial.println("sem_scribe=");
@ -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, " " );