Skip to content

Commit

Permalink
Merge pull request #2 from kelnos/embedded-hal-stable-1.0.0
Browse files Browse the repository at this point in the history
Update for embedded-hal 1.0.0
  • Loading branch information
kelnos authored Jan 10, 2024
2 parents cbea44e + 0fdafb9 commit b7b5e4e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
8 changes: 4 additions & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "sen0177"
description = "Read air quality data from the SEN0177 and PMSA003I sensors"
version = "0.5.1-alpha.1"
version = "0.6.0-alpha.1"
authors = ["Brian J. Tarricone <[email protected]>"]
homepage = "https://github.com/kelnos/sen0177-rs"
repository = "https://github.com/kelnos/sen0177-rs"
Expand All @@ -20,10 +20,10 @@ default = []
std = []

[dependencies]
embedded-hal = "=1.0.0-rc.1"
embedded-hal-nb = "=1.0.0-rc.1"
embedded-hal = "1"
embedded-hal-nb = "1"

[dev-dependencies]
anyhow = "1"
linux-embedded-hal = { git = "https://github.com/rust-embedded/linux-embedded-hal", rev = "27daf71e8ee22ff2b33fca5972a47dd139de69e2" }
linux-embedded-hal = { git = "https://github.com/kelnos/linux-embedded-hal", branch = "embedded-hal-1" }
serial = "0.4"
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,23 +22,23 @@ Include the following in your `Cargo.toml` file:

```toml
[dependencies]
sen0177 = "0.5"
sen0177 = "0.6"
```

If you are in a `no_std` environment, you may depend on this crate like so:

```toml
[dependencies]
sen0177 = { version = "0.5", default-features = false }
sen0177 = { version = "0.6", default-features = false }
```

## Usage

See the `examples/` directory.

Note that `linux-embedded-hal` does not currently have a release
supporting the 1.0.0 release candidates of `embedded-hal`, so the
Linux example has to pull `linux-embedded-hal` from GitHub.
Note that `linux-embedded-hal` does not (as of this writing) have a
release supporting the stable 1.x series of `embedded-hal`, so the Linux
example has to pull `linux-embedded-hal` from GitHub.

Note that the serial device occasionally returns bad data. If you
receive [`SensorError::BadMagic`] or [`SensorError::ChecksumMismatch`]
Expand Down

0 comments on commit b7b5e4e

Please sign in to comment.