dont try to check the gyro status if the gyro doesnt support interrupts
This commit is contained in:
parent
d97d4dd544
commit
08e87a40cf
|
@ -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…
Reference in New Issue