Skip to content

Commit

Permalink
fix: typo
Browse files Browse the repository at this point in the history
  • Loading branch information
andelf committed Jan 1, 2024
1 parent 5d00f65 commit 07e2a2b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/i2c-mpu6050.rs
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ impl<'d> MPU6050<'d> {

/// Initialize device for active mode read of acclerometer, gyroscope, and temperature
fn init(&mut self, config: &Config) -> Result<(), MPU6050Error> {
if self().read_byte(regs::WHO_AM_I_MPU6050)? != 0x68 {
if self.read_byte(regs::WHO_AM_I_MPU6050)? != 0x68 {
return Err(MPU6050Error::WrongDevice);
}

Expand Down

0 comments on commit 07e2a2b

Please sign in to comment.