mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-16 04:45:24 +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 mpuDataStatus;
|
||||
|
||||
if (!gyro->intStatus)
|
||||
return false;
|
||||
gyro->intStatus(&mpuDataStatus);
|
||||
return mpuDataStatus;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue