Attempt to run BME280 in default 'Android' mode -- See datasheet para 3.5.3

This commit is contained in:
Pim van Pelt
2018-04-22 10:23:05 +02:00
parent 498d2d8e03
commit e7367d1cec
2 changed files with 15 additions and 15 deletions

View File

@ -23,7 +23,7 @@
#define BME280_REG_TEMPERATURE_CALIB_DIG_T1_LSB (0x88)
#define BME280_OVERSAMP_NONE (0x00)
#define BME280_OVERSAMP_SKIPPED (0x00)
#define BME280_OVERSAMP_1X (0x01)
#define BME280_OVERSAMP_2X (0x02)
#define BME280_OVERSAMP_4X (0x03)
@ -38,6 +38,11 @@
#define BME280_STANDBY_1000ms (0x05)
// Note: Datasheet defines 110 == 10ms, 111 == 20ms, but BME280 and BMP280
// implement this differently.
#define BME280_FILTER_OFF (0x00)
#define BME280_FILTER_2X (0x01)
#define BME280_FILTER_4X (0x02)
#define BME280_FILTER_8X (0x03)
#define BME280_FILTER_16X (0x04)
struct mgos_barometer_bme280_calib_data {