bme forced mode fix

This commit is contained in:
richonguzman 2024-01-18 11:22:15 -03:00
parent c103fb7919
commit 469f7b5b42
1 changed files with 1 additions and 0 deletions

View File

@ -180,6 +180,7 @@ namespace BME_Utils {
uint32_t lastReading = millis() - bmeLastReading;
if (lastReading > 60*1000) {
bme.takeForcedMeasurement();
newTemp = bme.readTemperature();
newPress = (bme.readPressure() / 100.0F);
#if defined(BME280Sensor) || defined(BME680Sensor)