1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-26 09:45:37 +03:00

Use non-blocking access to dps310 gyro

This commit is contained in:
Steve Evans 2021-03-10 02:35:50 +00:00
parent bc4372588b
commit 80e9e8eddd
2 changed files with 20 additions and 22 deletions

View file

@ -349,7 +349,7 @@ static uint32_t recalculateBarometerTotal(uint32_t pressureTotal, int32_t newPre
nextSampleIndex = 0;
baroReady = true;
} else {
nextSampleIndex = (currentSampleIndex + 1);
nextSampleIndex = (currentSampleIndex + 1);
}
barometerSamples[currentSampleIndex] = applyBarometerMedianFilter(newPressureReading);
@ -439,7 +439,7 @@ uint32_t baroUpdate(void)
}
sleepTime = baro.dev.ut_delay;
break;
break;
}
return sleepTime;