Skip to content

Commit fbb6d2f

Browse files
committed
Fix wrong initialization of timeOfMinimum.
Fixes #319 The wrong initialization does not have any effect, value is not read unless datasetToConfirm is not null, which also sets `timeOfMinimum`
1 parent dde6fc2 commit fbb6d2f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/OpenBikeSensorFirmware.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ bool BMP280_active = false;
7979

8080
// --- Local variables ---
8181
unsigned long measureInterval = 1000;
82-
unsigned long timeOfMinimum = esp_timer_get_time(); // millis();
82+
unsigned long timeOfMinimum = millis();
8383
unsigned long startTimeMillis = 0;
8484
unsigned long currentTimeMillis = millis();
8585

0 commit comments

Comments
 (0)