mirror of
https://github.com/rust-embedded/embedded-hal.git
synced 2026-04-09 07:55:15 +00:00
Merge #231
231: Rename I2C iterator write method for consistency r=therealprof a=eldruin Co-authored-by: Diego Barrios Romero <eldruin@gmail.com>
This commit is contained in:
@@ -8,6 +8,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
|
||||
|
||||
## [Unreleased]
|
||||
|
||||
### Changed
|
||||
- The method `try_write` from the trait `blocking::i2c::WriteIter` trait
|
||||
has been renamed `try_write_iter` for consistency.
|
||||
|
||||
## [v1.0.0-alpha.1] - 2020-06-16
|
||||
|
||||
*** This is an alpha release with breaking changes (sorry) ***
|
||||
|
||||
@@ -65,7 +65,7 @@ pub trait WriteIter {
|
||||
/// # I2C Events (contract)
|
||||
///
|
||||
/// Same as `Write`
|
||||
fn try_write<B>(&mut self, address: u8, bytes: B) -> Result<(), Self::Error>
|
||||
fn try_write_iter<B>(&mut self, address: u8, bytes: B) -> Result<(), Self::Error>
|
||||
where
|
||||
B: IntoIterator<Item = u8>;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user