|
|
@@ -58,11 +58,9 @@ void Set_BME280_Pins(void)
|
|
58
|
58
|
/* Get one measurement in forced mode */
|
|
59
|
59
|
void BME280_Get_Measurement(struct bme280_data * data)
|
|
60
|
60
|
{
|
|
61
|
|
- int8_t rslt = BME280_OK;
|
|
62
|
|
-
|
|
63
|
|
- rslt = bme280_set_sensor_mode(BME280_FORCED_MODE, &deviceStructure);
|
|
|
61
|
+ bme280_set_sensor_mode(BME280_FORCED_MODE, &deviceStructure);
|
|
64
|
62
|
deviceStructure.delay_ms(req_delay);
|
|
65
|
|
- rslt = bme280_get_sensor_data(BME280_ALL, data, &deviceStructure);
|
|
|
63
|
+ bme280_get_sensor_data(BME280_ALL, data, &deviceStructure);
|
|
66
|
64
|
}
|
|
67
|
65
|
|
|
68
|
66
|
/* Implementation of the interface function needed by the BME280 library */
|