/* This internal API fills the pressure oversampling settings provided by the user in the data buffer so as to write in the sensor.  */
static void fill_osr_press_settings(uint8_t *reg_data, const struct bme280_settings *settings)
/* This internal API fills the pressure oversampling settings provided by the user in the data buffer so as to write in the sensor.  */
static void fill_osr_press_settings(uint8_t *reg_data, const struct bme280_settings *settings)
{
    *reg_data = BME280_SET_BITS(*reg_data, BME280_CTRL_PRESS, settings->osr_p);
}