Rev 11 | Rev 13 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 11 | Rev 12 | ||
|---|---|---|---|
| Line 179... | Line 179... | ||
| 179 | conf.os_temp = BMP280_OS_4X; |
179 | conf.os_temp = BMP280_OS_4X; |
| 180 | 180 | ||
| 181 | /* Pressure over sampling none (disabling pressure measurement) */ |
181 | /* Pressure over sampling none (disabling pressure measurement) */ |
| 182 | conf.os_pres = BMP280_OS_4X; |
182 | conf.os_pres = BMP280_OS_4X; |
| 183 | 183 | ||
| 184 | /* Setting the output data rate as 1HZ(1000ms) */ |
184 | /* Setting the output data rate as 2HZ(500ms) */ |
| 185 | conf.odr = BMP280_ODR_1000_MS; |
185 | conf.odr = BMP280_ODR_500_MS; |
| 186 | rslt = bmp280_set_config(&conf, &bmp); |
186 | rslt = bmp280_set_config(&conf, &bmp); |
| 187 | //print_rslt(" bmp280_set_config status", rslt); |
187 | //print_rslt(" bmp280_set_config status", rslt); |
| 188 | 188 | ||
| 189 | /* Always set the power mode after setting the configuration */ |
189 | /* Always set the power mode after setting the configuration */ |
| 190 | rslt = bmp280_set_power_mode(BMP280_NORMAL_MODE, &bmp); |
190 | rslt = bmp280_set_power_mode(BMP280_NORMAL_MODE, &bmp); |