remove delay when enabling motion detection

This commit is contained in:
juliangaal 2021-02-19 23:03:13 +01:00
commit d830eebbc6

View file

@ -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;