fix BME280 no iaq value

This commit is contained in:
Verkehrsrot 2019-04-06 20:23:28 +02:00
parent bf8ce227ff
commit 261c643d7f
2 changed files with 3 additions and 2 deletions

View File

@ -387,9 +387,9 @@ Note: all settings are stored in NVRAM and will be reloaded when device starts.
Device answers with it's current status on Port 4. Device answers with it's current status on Port 4.
0x85 get BME680 sensor data 0x85 get BME280 / BME680 sensor data
Device answers with BME680 sensor data set on Port 7. Device answers with BME sensor data set on Port 7.
0x86 get time/date 0x86 get time/date

View File

@ -165,6 +165,7 @@ void bme_loop(void *pvParameters) {
(bme.readPressure() / 100.0); // conversion Pa -> hPa (bme.readPressure() / 100.0); // conversion Pa -> hPa
// bme.readAltitude(SEALEVELPRESSURE_HPA); // bme.readAltitude(SEALEVELPRESSURE_HPA);
bme_status.humidity = bme.readHumidity(); bme_status.humidity = bme.readHumidity();
bme_status.iaq = 0; // IAQ feature not present with BME280
I2C_MUTEX_UNLOCK(); I2C_MUTEX_UNLOCK();
} }
} }