1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2025-03-15 07:29:15 +01:00

Cover an edge condition for the MPU6000 IRQ not firing

This commit is contained in:
James Cotton 2012-04-13 19:37:30 -05:00
parent e82323af32
commit a0d1b00ade

View File

@ -317,6 +317,11 @@ static void SensorsTask(void *parameters)
gyro_samples ++;
accel_samples ++;
}
if (gyro_samples == 0) {
error = true;
continue;
}
gyro_scaling = PIOS_MPU6000_GetScale();
accel_scaling = PIOS_MPU6000_GetAccelScale();