From ec8cc82af221ad9c74922cb2a7ce214d2b12ca55 Mon Sep 17 00:00:00 2001 From: Sean Bruton Date: Thu, 15 Aug 2019 06:25:17 -0500 Subject: [PATCH] updates incorrect I2C address in documentation, cleans up formatting of compiler flags, fixes #3 Signed-off-by: Sean Bruton --- Cargo.toml | 2 +- src/lib.rs | 20 +++++++++++++++----- 2 files changed, 16 insertions(+), 6 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index bfb99ca..94e5e05 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "bme280" -version = "0.1.1" +version = "0.1.2" authors = ["Sean Bruton "] description = "A rust device driver for the Bosch BME280 temperature, humidity, and atmospheric pressure sensor and the Bosch BMP280 temperature, and atmospheric pressure sensor" repository = "https://github.com/uber-foo/bme280-rs" diff --git a/src/lib.rs b/src/lib.rs index 44aa7e0..18d61d0 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,9 +1,19 @@ #![doc(html_root_url = "https://docs.rs/bme280")] #![doc(issue_tracker_base_url = "https://github.com/uber-foo/bme280/issues/")] #![deny( - missing_docs, missing_debug_implementations, missing_copy_implementations, trivial_casts, - trivial_numeric_casts, unsafe_code, unstable_features, unused_import_braces, - unused_qualifications, unused_variables, unreachable_code, unused_comparisons, unused_imports, + missing_docs, + missing_debug_implementations, + missing_copy_implementations, + trivial_casts, + trivial_numeric_casts, + unsafe_code, + unstable_features, + unused_import_braces, + unused_qualifications, + unused_variables, + unreachable_code, + unused_comparisons, + unused_imports, unused_must_use )] #![no_std] @@ -34,10 +44,10 @@ //! // using Linux I2C Bus #1 in this example //! let i2c_bus = I2cdev::new("/dev/i2c-1").unwrap(); //! -//! // initialize the BME280 using the primary I2C address 0x77 +//! // initialize the BME280 using the primary I2C address 0x76 //! let mut bme280 = BME280::new_primary(i2c_bus, Delay); //! -//! // or, initialize the BME280 using the secondary I2C address 0x78 +//! // or, initialize the BME280 using the secondary I2C address 0x77 //! // let mut bme280 = BME280::new_secondary(i2c_bus, Delay); //! //! // or, initialize the BME280 using a custom I2C address