Make interval in measurements reset on clear.
authorLukáš Jiřiště <jiriste@icpf.cas.cz>
Tue, 10 Dec 2024 15:50:36 +0000 (16:50 +0100)
committerLukáš Jiřiště <jiriste@icpf.cas.cz>
Tue, 10 Dec 2024 15:50:36 +0000 (16:50 +0100)
Measurement.ino

index a0a7622c375c502897710f02881dd201bc34263f..56fc0477629d94cdee6761fe97f76101cab920bd 100644 (file)
@@ -37,6 +37,7 @@ void  Measurement::clear()
 {
        m_size = 0;
        m_start_time = millis();
+       m_interval_ms = START_INTERVAL_MS;
 }
 
 // The function calls get_measurement repeatedly. It uses these measurements to