remove delay when enabling motion detection
This commit is contained in:
parent
e08126199a
commit
d830eebbc6
1 changed files with 5 additions and 5 deletions
|
|
@ -12,7 +12,7 @@ fn main() -> Result<(), Mpu6050Error<LinuxI2CError>> {
|
|||
let mut mpu = Mpu6050::new(i2c);
|
||||
|
||||
mpu.init(&mut delay)?;
|
||||
mpu.setup_motion_detection(&mut delay)?;
|
||||
mpu.setup_motion_detection()?;
|
||||
|
||||
let mut count: u8 = 0;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue