1
0
Fork 0
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:
nathan 2016-04-30 12:34:55 -07:00 committed by borisbstyle
parent d97d4dd544
commit 08e87a40cf

View file

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