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:
parent
bc4372588b
commit
80e9e8eddd
2 changed files with 20 additions and 22 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue