changements compte-tour & scribe
This commit is contained in:
parent
19bc7fd973
commit
b3b2ee4c54
|
@ -341,12 +341,14 @@ void scribe_sd (){
|
||||||
char timestamp[] = "YY-MM-DD-hh:mm:ss";
|
char timestamp[] = "YY-MM-DD-hh:mm:ss";
|
||||||
char *horodatage = now.toString(timestamp);
|
char *horodatage = now.toString(timestamp);
|
||||||
char buffer[64];
|
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, horodatage);
|
||||||
appendFile(SD, fichier, " " );
|
appendFile(SD, fichier, " " );
|
||||||
appendFile(SD, fichier, buffer);
|
appendFile(SD, fichier, buffer);
|
||||||
appendFile(SD, fichier, "\n" );
|
appendFile(SD, fichier, "\n" );
|
||||||
//Serial.println(vRotReel);
|
Serial.println("ECRITURE SUR SD");
|
||||||
sem_scribe = false;
|
sem_scribe = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue