/* This internal API reloads the already existing device settings in the sensor after soft reset.  */
static int8_t reload_device_settings(const struct bme280_settings *settings, struct bme280_dev *dev)
/* This internal API reloads the already existing device settings in the sensor after soft reset.  */
static int8_t reload_device_settings(const struct bme280_settings *settings, struct bme280_dev *dev)
{
    int8_t rslt;
    rslt = set_osr_settings(BME280_ALL_SETTINGS_SEL, settings, dev);
    if (rslt == BME280_OK)
    {
        rslt = set_filter_standby_settings(BME280_ALL_SETTINGS_SEL, settings, dev);
    }
    return rslt;
}