Skip to content

Commit

Permalink
Bump bitflags dependency to 2.6
Browse files Browse the repository at this point in the history
  • Loading branch information
marcelbuesing committed Oct 28, 2024
1 parent 843ed17 commit 5da7bc1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ travis-ci = { repository = "https://github.com/marcelbuesing/bme680-hal", branch
maintenance = { status = "passively-maintained" }

[dependencies]
bitflags = "1.2"
bitflags = "2.6"
embedded-hal = "=1.0"
log = "0.4"
serde = { version = "1.0", optional = true, default-features = false }
Expand Down
2 changes: 1 addition & 1 deletion src/settings.rs
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ bitflags! {
/// To set NB conversion setting.
const NBCONV_SEL = 128;
/// To set all gas sensor related settings
const GAS_SENSOR_SEL = Self::GAS_MEAS_SEL.bits | Self::RUN_GAS_SEL.bits | Self::NBCONV_SEL.bits;
const GAS_SENSOR_SEL = Self::GAS_MEAS_SEL.bits() | Self::RUN_GAS_SEL.bits() | Self::NBCONV_SEL.bits();
}
}

Expand Down

0 comments on commit 5da7bc1

Please sign in to comment.