Fix _unresolved type Error
_ in example code
This commit is contained in:
parent
6af9d887f4
commit
d70b54dab5
1 changed files with 2 additions and 2 deletions
|
@ -12,9 +12,9 @@ use mpu6050::*;
|
|||
use linux_embedded_hal::{I2cdev, Delay};
|
||||
use i2cdev::linux::LinuxI2CError;
|
||||
|
||||
fn main() -> Result<(), Error<LinuxI2CError>> {
|
||||
fn main() -> Result<(), Mpu6050Error<LinuxI2CError>> {
|
||||
let i2c = I2cdev::new("/dev/i2c-1")
|
||||
.map_err(Error::I2c)?;
|
||||
.map_err(Mpu6050Error::I2c)?;
|
||||
|
||||
let delay = Delay;
|
||||
|
||||
|
|
Loading…
Reference in a new issue