mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-17 13:25:30 +03:00
add microsecond delay to interrupt read
This commit is contained in:
parent
426ccbd307
commit
cb8c56d814
5 changed files with 6887 additions and 6880 deletions
Binary file not shown.
13761
obj/betaflight_NAZE.hex
13761
obj/betaflight_NAZE.hex
File diff suppressed because it is too large
Load diff
|
@ -453,5 +453,7 @@ void checkMPU6050Interrupt(bool *gyroIsUpdated) {
|
|||
|
||||
i2cRead(MPU6050_ADDRESS, MPU_RA_INT_STATUS, 1, &mpuIntStatus);
|
||||
|
||||
delayMicroseconds(5);
|
||||
|
||||
(mpuIntStatus) ? (*gyroIsUpdated= true) : (*gyroIsUpdated= false);
|
||||
}
|
||||
|
|
|
@ -352,5 +352,7 @@ void checkMPU6000Interrupt(bool *gyroIsUpdated) {
|
|||
|
||||
mpu6000ReadRegister(MPU6000_INT_STATUS, &mpuIntStatus, 1);
|
||||
|
||||
delayMicroseconds(5);
|
||||
|
||||
(mpuIntStatus) ? (*gyroIsUpdated= true) : (*gyroIsUpdated= false);
|
||||
}
|
||||
|
|
|
@ -248,5 +248,7 @@ void checkMPU6500Interrupt(bool *gyroIsUpdated) {
|
|||
|
||||
mpu6500ReadRegister(MPU6500_INT_STATUS, &mpuIntStatus, 1);
|
||||
|
||||
delayMicroseconds(5);
|
||||
|
||||
(mpuIntStatus) ? (*gyroIsUpdated= true) : (*gyroIsUpdated= false);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue