Skip to content

Commit

Permalink
Updating changelong and ran cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
Paumanok committed Apr 18, 2024
1 parent 88e232f commit 4d88ec5
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.

...

## 0.1.2 - 2024-4-18
- Embedded-hal was raised to 1.0.0
- linux-embedded-hal raised to 0.4 for embedded-hal 1.0.0 support
- embedded-hal-mock specify embedded-hal 1.0.0 feature set

## 0.1.1 - 2023-12-11

### Changed
Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ embedded-hal = "1.0.0"

[dev-dependencies]
linux-embedded-hal = "0.4"
embedded-hal-mock = {version="0.10.0", features=['eh1']}
embedded-hal-mock = {version="0.10.0", default-features=false, features=['eh1']}

[profile.release]
lto = true
4 changes: 2 additions & 2 deletions src/max17043_44.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ impl_common_4x!(Max17044);

impl<I2C, E> Max17043<I2C>
where
I2C: i2c::I2c<Error = E>,
I2C: i2c::I2c<Error = E>,
{
/// Get battery voltage
pub fn voltage(&mut self) -> Result<f32, Error<E>> {
Expand All @@ -40,7 +40,7 @@ I2C: i2c::I2c<Error = E>,

impl<I2C, E> Max17044<I2C>
where
I2C: i2c::I2c<Error = E>,
I2C: i2c::I2c<Error = E>,
{
/// Get battery voltage
pub fn voltage(&mut self) -> Result<f32, Error<E>> {
Expand Down

0 comments on commit 4d88ec5

Please sign in to comment.