From 5ccfc84215c53a3de05de1a36a1fc3ea6724fcee Mon Sep 17 00:00:00 2001 From: Nathael Pajani Date: Sat, 13 May 2017 01:09:44 +0200 Subject: [PATCH] remove unrequired sleep from bme driver. --- extdrv/bme280_humidity_sensor.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/extdrv/bme280_humidity_sensor.c b/extdrv/bme280_humidity_sensor.c index 9976edf..42044f0 100644 --- a/extdrv/bme280_humidity_sensor.c +++ b/extdrv/bme280_humidity_sensor.c @@ -148,16 +148,13 @@ int bme280_configure(struct bme280_sensor_config* conf) if (bme280_probe_sensor(conf) != 1) { return -ENODEV; } - /* The call to bme280_configure() was certainly the first access to the sensor, so - * the probe part made I2C access, thus leave some delay for I2C to become available again. */ - msleep(1); /* Send the configuration */ ret = i2c_write(conf->bus_num, cmd_buf, CONF_BUF_SIZE, NULL); if (ret != CONF_BUF_SIZE) { conf->probe_ok = 0; return -EIO; } - + /* Get the calibration data */ ret = bme280_get_calibration_data(conf); return ret; -- 2.43.0