Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
davidbeechey committed Sep 19, 2024
1 parent c52e441 commit 5877132
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/io/stm32l476rg/src/i2c.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,13 @@ impl<'d> HypedI2c for Stm32l476rgI2c<'d> {
/// Write a byte to a register on a device
fn write_byte_to_register(
&mut self,
device_addres: u8,
device_address: u8,
register_address: u8,
data: u8,
) -> Result<(), ()> {
let result = self
.i2c
.blocking_write(device_addres, [register_address, data].as_ref());
.blocking_write(device_address, [register_address, data].as_ref());
match result {
Ok(_) => Ok(()),
Err(_) => Err(()),
Expand Down

0 comments on commit 5877132

Please sign in to comment.