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
parent 46a49f6147
commit 96f4d090a2
1 changed files with 2 additions and 1 deletions

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