Skip to content

Commit

Permalink
fixing i2c.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
Aux1r committed Nov 16, 2024
1 parent 94051df commit d8cc8a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion boards/stm32l476rg/src/io/i2c.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ impl<'d> HypedI2c for Stm32l476rgI2c<'d> {
) -> Result<(), I2cError> {
let result = self
.i2c
.blocking_write(device_address, [register_address, data].as_ref());
.blocking_write(device_address, [register_address, data.into()].as_ref());
match result {
Ok(_) => Ok(()),
Err(e) => Err(match e {
Expand Down

0 comments on commit d8cc8a9

Please sign in to comment.