diff --git a/CHANGELOG.md b/CHANGELOG.md index 20b5fe0..9b3ffe0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,11 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [0.20.0] - 2023-12-14 +### Changed +- Updated the v1 release of `embedded-hal` from `1.0.0-rc.2` to `1.0.0-rc.3`. +- Updated the v1 release of `embedded-hal-nb` from `1.0.0-rc.2` to `1.0.0-rc.3`. + ## [0.19.0] - 2023-11-29 ### Changed - Updated the v1 release of `embedded-hal` from `1.0.0-rc.1` to `1.0.0-rc.2`. @@ -163,7 +168,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [0.1.0] - 2020-09-12 - Initial release -[Unreleased]: https://github.com/ftdi-rs/ftdi-embedded-hal/compare/v0.19.0...HEAD +[Unreleased]: https://github.com/ftdi-rs/ftdi-embedded-hal/compare/v0.20.0...HEAD +[0.20.0]: https://github.com/ftdi-rs/ftdi-embedded-hal/compare/v0.19.0...v0.20.0 [0.19.0]: https://github.com/ftdi-rs/ftdi-embedded-hal/compare/v0.18.0...v0.19.0 [0.18.0]: https://github.com/ftdi-rs/ftdi-embedded-hal/compare/v0.17.0...v0.18.0 [0.17.0]: https://github.com/ftdi-rs/ftdi-embedded-hal/compare/v0.16.0...v0.17.0 diff --git a/Cargo.toml b/Cargo.toml index bf4ff3b..1d95857 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "ftdi-embedded-hal" -version = "0.19.0" +version = "0.20.0" authors = ["Alex Martens "] description = "embedded-hal implementation for FTDI USB devices." keywords = ["ftdi", "usb", "io", "hal"] @@ -17,8 +17,8 @@ default = [] [dependencies] eh0 = { package = "embedded-hal", version = "0.2.7", features = ["unproven"] } -eh1 = { package = "embedded-hal", version = "=1.0.0-rc.2" } -ehnb1 = { package = "embedded-hal-nb", version = "=1.0.0-rc.2" } +eh1 = { package = "embedded-hal", version = "=1.0.0-rc.3" } +ehnb1 = { package = "embedded-hal-nb", version = "=1.0.0-rc.3" } ftdi = { version = "0.1.3", optional = true } ftdi-mpsse = "0.1" libftd2xx = { version = "0.32", optional = true } diff --git a/README.md b/README.md index a55200c..93b5eef 100644 --- a/README.md +++ b/README.md @@ -25,7 +25,7 @@ FTDI device into the [embedded-hal] traits. ```toml [dependencies.ftdi-embedded-hal] -version = "0.19.0" +version = "0.20.0" features = ["libftd2xx", "libftd2xx-static"] ``` diff --git a/src/gpio.rs b/src/gpio.rs index 3c8ef91..681dbc4 100644 --- a/src/gpio.rs +++ b/src/gpio.rs @@ -177,11 +177,11 @@ where E: std::error::Error, Error: From, { - fn is_high(&self) -> Result { + fn is_high(&mut self) -> Result { self.get() } - fn is_low(&self) -> Result { + fn is_low(&mut self) -> Result { self.get().map(|res| !res) } } diff --git a/src/lib.rs b/src/lib.rs index 38c33ba..f34345e 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -18,7 +18,7 @@ //! //! ```toml //! [dependencies.ftdi-embedded-hal] -//! version = "0.19.0" +//! version = "0.20.0" //! features = ["libftd2xx", "libftd2xx-static"] //! ``` //!