add default delay of 2s

This commit is contained in:
Denis-Cosmin Nutiu 2024-11-21 00:57:24 +02:00
parent 1dfea3fa47
commit fe804c0d98
4 changed files with 4 additions and 4 deletions

2
Cargo.lock generated
View file

@ -89,7 +89,7 @@ dependencies = [
[[package]] [[package]]
name = "bme680-json" name = "bme680-json"
version = "1.0.3" version = "1.0.4"
dependencies = [ dependencies = [
"anyhow", "anyhow",
"bme680", "bme680",

View file

@ -1,6 +1,6 @@
[package] [package]
name = "bme680-json" name = "bme680-json"
version = "1.0.3" version = "1.0.4"
edition = "2021" edition = "2021"
[dependencies] [dependencies]

View file

@ -12,5 +12,5 @@ Then run:
```bash ```bash
bme680-json bme680-json
{"temperature":32.66,"pressure":622.29,"humidity":100.0,"gas_resistance":802874} {"temperature":23.55,"pressure":991.04,"humidity":60.444,"gas_resistance":1443025}
``` ```

View file

@ -24,7 +24,7 @@ struct Args {
i2c_address: String, i2c_address: String,
/// Delay reading by the specified amount in milliseconds. /// Delay reading by the specified amount in milliseconds.
#[arg(long, default_value_t = 1000)] #[arg(long, default_value_t = 2000)]
delay: u32 delay: u32
} }