Commit 229b7b4a authored by Melroy van den Berg's avatar Melroy van den Berg

enable IIR

parent 3e274ea3
Pipeline #1059 passed with stages
in 13 seconds
......@@ -124,14 +124,14 @@ bool DoCO2Measurement() {
*/
bool DoTempMeasurement(int i2c_fd) {
// The OSR settings (force mode, host in control so no standby settings needed)
uint8_t settings_sel = BME280_OSR_PRESS_SEL | BME280_OSR_TEMP_SEL | BME280_OSR_HUM_SEL; // | BME280_FILTER_SEL;
uint8_t settings_sel = BME280_OSR_PRESS_SEL | BME280_OSR_TEMP_SEL | BME280_OSR_HUM_SEL | BME280_FILTER_SEL;
bme280_settings settings;
// Set indoor settings
settings.osr_h = BME280_OVERSAMPLING_1X;
settings.osr_p = BME280_OVERSAMPLING_16X;
settings.osr_t = BME280_OVERSAMPLING_2X;
settings.filter = BME280_FILTER_COEFF_OFF;
settings.filter = BME280_FILTER_COEFF_16;
BME280 bme(i2c_fd, &settings);
// Select sensor on the bus
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment