BigW Consortium Gitlab

Commit 43cfe34b by David Clark

Added BME680 driver source

parent 354e27dd
Subproject commit b619094dfe507034e1034884f4638a78dae7646c
......@@ -223,7 +223,6 @@ static int bme680_i2c_probe(struct i2c_client *client,
int ret;
struct iio_dev *indio_dev;
struct bme680_data *data;
u16 desired_settings = UINT16_C(65535);
u8 set_required_settings;
dev_info(&client->dev, "%s(): probe chip ID(0x%lx)\n", __func__, id->driver_data);
......@@ -281,12 +280,6 @@ static int bme680_i2c_probe(struct i2c_client *client,
goto exit;
}
ret = bme680_get_sensor_settings(desired_settings, &data->bme680_dev);
if (ret) {
dev_err(&client->dev, "%s(): Error bme680_get_sensor_settings() failed(%d)\n", __func__, ret);
goto exit;
}
/* Set the temperature, pressure and humidity settings */
data->bme680_dev.tph_sett.os_hum = BME680_OS_2X;
data->bme680_dev.tph_sett.os_pres = BME680_OS_4X;
......
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