test horodatage
This commit is contained in:
parent
301d2b2e75
commit
b9fb098576
|
@ -415,8 +415,9 @@ void scribe_sd (){
|
||||||
if ( sem_scribe == true && chrono_scribe >= inter_ecriture ){
|
if ( sem_scribe == true && chrono_scribe >= inter_ecriture ){
|
||||||
//Serial.println("balise scribe");
|
//Serial.println("balise scribe");
|
||||||
int vRotMoyen = count*60000/(pptr*chrono_scribe);
|
int vRotMoyen = count*60000/(pptr*chrono_scribe);
|
||||||
|
DateTime time{rtc.now()};
|
||||||
char timestamp[] = "YY-MM-DD-hh:mm:ss";
|
char timestamp[] = "YY-MM-DD-hh:mm:ss";
|
||||||
char *horodatage = now.toString(timestamp);
|
char *horodatage = time.toString(timestamp);
|
||||||
char buffer[64];
|
char buffer[64];
|
||||||
snprintf(buffer, sizeof buffer, "%d", vRotMoyen);
|
snprintf(buffer, sizeof buffer, "%d", vRotMoyen);
|
||||||
appendFile(SD, fichier, horodatage);
|
appendFile(SD, fichier, horodatage);
|
||||||
|
|
Loading…
Reference in a new issue