Skip to content

Commit

Permalink
linux-embedded-hal shouldnt be a default dependancy
Browse files Browse the repository at this point in the history
Fixes #10
  • Loading branch information
hauju committed Feb 18, 2024
1 parent 17f9740 commit 8ec7fb3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ default-run = "scd4x-util"
[features]
scd41 = []
util = [ "structopt", "simplelog", "humantime", "linux-embedded-hal", "anyhow" ]
default = [ "util" ]
default = []

[dependencies]
sensirion-i2c = "0.1"
Expand Down
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@ Further information: [Datasheet CO2 Sensor SCD4x](https://www.sensirion.com/file

## Usage

Run scd4x-util to read the serial number and the measurement output.
```bash
cargo run --features="util"
```

See an example using `linux-embedded-hal` in `examples/linux.rs`.
```bash
cargo run --example linux
Expand Down

0 comments on commit 8ec7fb3

Please sign in to comment.