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:
parent
e82323af32
commit
a0d1b00ade
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user