mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-17 05:15:25 +03:00
dont try to check the gyro status if the gyro doesnt support interrupts
This commit is contained in:
parent
d97d4dd544
commit
08e87a40cf
1 changed files with 2 additions and 1 deletions
|
@ -32,7 +32,8 @@ static uint8_t mpuDividerDrops;
|
||||||
bool getMpuDataStatus(gyro_t *gyro)
|
bool getMpuDataStatus(gyro_t *gyro)
|
||||||
{
|
{
|
||||||
bool mpuDataStatus;
|
bool mpuDataStatus;
|
||||||
|
if (!gyro->intStatus)
|
||||||
|
return false;
|
||||||
gyro->intStatus(&mpuDataStatus);
|
gyro->intStatus(&mpuDataStatus);
|
||||||
return mpuDataStatus;
|
return mpuDataStatus;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue