/* This API gets the oversampling, filter and standby duration (normal mode) settings from the sensor.  */
int8_t bme280_get_sensor_settings(struct bme280_dev *dev)
/* This API gets the oversampling, filter and standby duration (normal mode) settings from the sensor.  */
int8_t bme280_get_sensor_settings(struct bme280_dev *dev)
{
    int8_t rslt;
    uint8_t reg_data[4];
    rslt = null_ptr_check(dev);
    if (rslt == BME280_OK)
    {
        rslt = bme280_get_regs(BME280_CTRL_HUM_ADDR, reg_data, 4, dev);
        if (rslt == BME280_OK)
        {
            parse_device_settings(reg_data, &dev->settings);
        }
    }
    return rslt;
}