Skip to content

Commit

Permalink
rework the sensor settings to weather monitoring
Browse files Browse the repository at this point in the history
  • Loading branch information
hasenradball committed Oct 5, 2023
1 parent 5012cb1 commit 286911a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions Bosch_BME280_Arduino.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -154,11 +154,11 @@ int8_t BME::Bosch_BME280::setSensorSettings() {
result = bme280_get_sensor_settings(&_settings, &_dev);
bme280_print_error_codes("bme280_get_sensor_settings", result);

// Recommended settings of operation: Indoor navigation
// Recommended settings of operation: => weather monitoring
_settings.osr_p = BME280_OVERSAMPLING_1X;
_settings.osr_t = BME280_OVERSAMPLING_1X;
_settings.osr_h = BME280_OVERSAMPLING_1X;
_settings.osr_p = BME280_OVERSAMPLING_16X;
_settings.osr_t = BME280_OVERSAMPLING_2X;
_settings.filter = BME280_FILTER_COEFF_16;
_settings.filter = BME280_FILTER_COEFF_OFF;

if (_mode == BME280_POWERMODE_FORCED) {
// ### --- Forced MODE Setting --- ###
Expand All @@ -170,7 +170,7 @@ int8_t BME::Bosch_BME280::setSensorSettings() {
}
else {
/* ### --- NORMAL MODE Setting --- ### */
_settings.standby_time = BME280_STANDBY_TIME_62_5_MS;
_settings.standby_time = BME280_STANDBY_TIME_1000_MS;

uint8_t settings_sel = BME280_SEL_OSR_PRESS;
settings_sel |= BME280_SEL_OSR_TEMP;
Expand Down
2 changes: 1 addition & 1 deletion library.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "Bosch_BME280_Arduino",
"version": "1.0.0",
"version": "1.0.1",
"repository":
{
"type": "git",
Expand Down

0 comments on commit 286911a

Please sign in to comment.