diff --git a/src/main.cpp b/src/main.cpp index 79f6048..5afaec4 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -336,9 +336,10 @@ void scribe_sd (){ pcnt_counter_clear(PCNT_TEST_UNIT); pcnt_counter_resume(PCNT_TEST_UNIT); start_chrono_scribe = millis(); - Serial.println("balise sem scribe"); + } if ( sem_scribe == true && (millis() - start_chrono_scribe) >= intervalle_d_ecriture ){ + Serial.println("balise scribe"); char timestamp[] = "YY-MM-DD-hh:mm:ss"; char *horodatage = now.toString(timestamp); char buffer[64];