summaryrefslogtreecommitdiff
path: root/src/app/i2cdetect
diff options
context:
space:
mode:
authorDaniel Friesel <daniel.friesel@uos.de>2019-10-25 15:39:28 +0200
committerDaniel Friesel <daniel.friesel@uos.de>2019-10-25 15:39:28 +0200
commit7047bcec472ae06ccb11849fb9538c687743ec9d (patch)
treeb160f3d3f5cd1ff00b18b410e5db1de13889d6bb /src/app/i2cdetect
parenta4cad3173fc49cc0286f6eedf6efbca15db6688e (diff)
BME280: Add DFA model
Diffstat (limited to 'src/app/i2cdetect')
-rw-r--r--src/app/i2cdetect/main.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/app/i2cdetect/main.cc b/src/app/i2cdetect/main.cc
index faa2725..e5442ff 100644
--- a/src/app/i2cdetect/main.cc
+++ b/src/app/i2cdetect/main.cc
@@ -72,7 +72,7 @@ void loop(void)
bme280.settings.filter = BME280_FILTER_COEFF_OFF;
bme280.settings.standby_time = BME280_STANDBY_TIME_500_MS;
bme280.setSensorSettings(BME280_OSR_PRESS_SEL | BME280_OSR_TEMP_SEL | BME280_OSR_HUM_SEL | BME280_FILTER_SEL | BME280_STANDBY_SEL);
- bme280.setSensorMode(BME280_NORMAL_MODE);
+ bme280.enterNormalMode();
arch.delay_ms(100);
rslt = bme280.getSensorData(BME280_ALL, &comp_data);
kout << "BME280 read " << rslt << endl;