modifs scribeSD vRotMoyen
This commit is contained in:
parent
f34b691ed4
commit
bef81e1b6d
7
.vscode/settings.json
vendored
Normal file
7
.vscode/settings.json
vendored
Normal file
|
@ -0,0 +1,7 @@
|
|||
{
|
||||
"files.associations": {
|
||||
"bitset": "cpp",
|
||||
"fstream": "cpp",
|
||||
"ostream": "cpp"
|
||||
}
|
||||
}
|
|
@ -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, " " );
|
||||
|
|
Loading…
Reference in a new issue